我启动了一个 aws EC2 实例 Windows Server 2012 R2。
它预装了.Net 4.5。
但我正在运行需要 4.6.1 的代码。
我尝试了在线和离线安装程序。我是管理员。我在安装程序上选择“以管理员身份运行”。它提取了包。安装进度条已完成。无论哪种方式,我都会收到相同的错误消息:
错误消息没有帮助,我不知道如何继续。
日志文件显示以下内容:
© 2009 Microsoft Corporation. All rights reserved. Terms of Use.
OS Version = 6.3.9600, SP = 0.0, Platform 2
OS Description = Win2k12R2 - x64 Standard Edition
MSI = 5.0.9600.19082
Windows servicing = 6.3.9600.18384
CommandLine = D:\0ce7916d947e0ebb7a5825cc0c\\Setup.exe /x86 /x64 /redist
TimeZone = Pacific Standard Time
Initial LCID = 1033
Using Simultaneous Download and Install mechanism
Operation: Installing
Package Name = Microsoft .NET Framework 4.6.1 Setup
Package Version = 4.6.01055
User Experience Data Collection Policy: Disabled
Number of applicable items: 6
Exe (D:\0ce7916d947e0ebb7a5825cc0c\SetupUtility.exe) succeeded.
Exe (D:\0ce7916d947e0ebb7a5825cc0c\SetupUtility.exe) succeeded.
Exe (D:\0ce7916d947e0ebb7a5825cc0c\x64-Windows8.1-KB3102467-x64.cab) failed with 0x57 - The parameter is incorrect. .
Final Result: Installation failed with error code: (0x00000057), "The parameter is incorrect. " (Elapsed time: 0 00:00:49).
答案1
如果 Windows 模块安装程序服务被禁用,则可能会出现这种情况。