在安裝 .NET Framework
時系統會出現 元件存放區已損毀
的錯誤訊息
近來發現有學校在 Windows 8 的作業系統平台上要安裝 .NET Framework
時,會出現安裝失敗的案例,錯誤訊息為 元件存放區已損毀
,基於實事求是的精神,我決定認真找原因(另一個主要的原因是…這個錯誤訊息很少見,個人也是第一次碰到)。我們盡量的還原錯誤的環境,但仍無法模擬出該狀況,只能遠端連線借測學校的電腦來排除問題,錯誤的訊息如下:
.NET Framework 4.7.2
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
.NET Framework 4.8
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
經過半天的測試終於找到解法了,請依下述步驟執行,即可解除警報:
- 先以系統管理員身份啟動「命令提示字元」。
- 執行「
DISM.exe /Online /Cleanup-image /Scanhealth
」
- 再接著執行「
DISM.exe /Online /Cleanup-image /Restorehealth
」
- 請更新 Windows Update 到最新版本。
DISM 執行狀況擷圖
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
參考資訊