Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Win10 IIS 執行 .NET Framework 4.0 註冊失敗解決方案

編輯:Windows 10 系統介紹

在 Windows 10 環境下安裝 IIS 並嘗試註冊 .NET Framework 4.0 時常遇到失敗,主因是系統預載 .NET 4.5 版本導致衝突。

原因分析

Windows 10 內建 .NET Framework 4.5,安裝 Visual Studio 2015 後會進一步更新至 4.6+ 版本。此環境下無法直接安裝或註冊較舊的 4.0 版本,即使移除高版本仍無法解決。

建議解決流程

  1. 重新安裝 Windows 10(乾淨安裝)。
  2. 先啟用 IIS 功能(此時系統會自動註冊 .NET 4.0)。
  3. 再安裝 Visual Studio 2015 或更新 .NET Framework 至 4.5 以上版本。

目前 .NET Framework 已更新至 4.8 版本,建議直接使用 4.5+ 版本開發與部署,避免相容性問題。

Copyright © Windows教程網 All Rights Reserved