我無法啟用可選功能 IIS-ASPNET 和 IIS-NetFxExtensibility。當我在 powershell 上運行以下命令以啟用功能時
Enable-WindowsOptionalFeature -Online -FeatureName "IIS-NetFxExtensibility" -All
Enable-WindowsOptionalFeature -Online -FeatureName "IIS-ASPNET" -All
我得到以下錯誤
Enable-WindowsOptionalFeature : The source files could not be downloaded.
Use the "source" option to specify the location of the files that are required to restore the feature. For more
information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077.
At line:1 char:1
Enable-WindowsOptionalFeature -Online -FeatureName "IIS-ASPNET" -All
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand
uj5u.com熱心網友回復:
您需要確保機器連接到網路,否則無法安裝成功。或下載新的批量許可媒體。
您無法在 Windows Server 2012 R2 中安裝功能
方法 1:連接到 Internet 如果服務器可以連接到 Windows Update 以進行功能安裝,請讓服務器建立連接。
方法 2:使用 Windows Server 2012 R2 安裝媒體 如果服務器無法連接到 Windows Update,請下載新的批量許可媒體(2013 年 12 月 11 日發布)并使用 Install-WindowsFeature PowerShell 命令。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/435913.html
上一篇:如何在從github存盤庫克隆的android中運行react-native應用程式?
下一篇:是否會導致Postgres例外:42501:必須是行程被終止的角色的成員或pg_signal_backend的成員?
