安装vs2013 RTM时,Web开发人员和asp.net运行时包设置失败。
我从安装日志文件中找到了一些错误信息:
Web开发人员工具信息:
[1024:1040][2013-10-18T22:36:08]i301: Applying execute package: webtoolsextensionsvs_1040, action: Install, path: C:\ProgramData\Package Cache\{BD63060C-F4C7-4E86-9C2A-4A102E7EE12C}v2.0.40926.0\packages\WPT\webtoolsextensionsvs2013.msi, arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" SKIP_SETUP="1"'
[1024:1040][2013-10-18T22:36:19]e000: Error 0x80070643: Failed to install MSI package.
[1024:1040][2013-10-18T22:36:19]e000: Error 0x80070643: Failed to execute MSI package.
[0E84:0900][2013-10-18T22:36:19]e000: Error 0x80070643: Failed to configure per-machine MSI package.
[0E84:0900][2013-10-18T22:36:19]i000: MUX: Installation size in bytes for package: webtoolsextensionsvs_1040 MaxAppDrive: 0 MaxSysDrive: 168521728 AppDrive: 0 SysDrive: 136851456
[0E84:0900][2013-10-18T22:36:19]i000: MUX: Return Code:0x80070643 Msi Messages:0 Result Detail:WebConfigInitialize Restart:None
[0E84:0900][2013-10-18T22:36:19]i000: MUX: Set Result: Return Code=-2147023293 (0x80070643), Error Message=, Result Detail=WebConfigInitialize, Vital=False, Package Action=Install, Package Id=webtoolsextensionsvs_1040
[0E84:0900][2013-10-18T22:36:19]w350: Applied non-vital package: webtoolsextensionsvs_1040, encountered error: 0x80070643. Continuing...
[1024:1040][2013-10-18T22:36:19]i325: Registering dependency: {9e6e5a9b-6f0e-40ff-84fb-19cab458402e} on package provider: {BD63060C-F4C7-4E86-9C2A-4A102E7EE12C}, package: webtoolsextensionsvs_1040
asp.net第2页运行时包信息:
[1024:1040][2013-10-18T22:36:49]i301: Applying execute package: aspnetwebpages2_1030, action: Install, path: C:\ProgramData\Package Cache\{B536762B-1047-4B51-8ECF-46D5686E5416}v2.0.20716.0\packages\WPT\aspnetwebpages2.msi, arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7"'
[1024:1040][2013-10-18T22:36:52]e000: Error 0x80070643: Failed to install MSI package.
[1024:1040][2013-10-18T22:36:52]e000: Error 0x80070643: Failed to execute MSI package.
[0E84:0900][2013-10-18T22:36:52]e000: Error 0x80070643: Failed to configure per-machine MSI package.
[0E84:0900][2013-10-18T22:36:52]i000: MUX: Installation size in bytes for package: aspnetwebpages2_1030 MaxAppDrive: 0 MaxSysDrive: 1511424 AppDrive: 0 SysDrive: 729088
[0E84:0900][2013-10-18T22:36:52]i000: MUX: Return Code:0x80070643 Msi Messages:0 Result Detail:WebConfigInitialize Restart:None
[0E84:0900][2013-10-18T22:36:52]w350: Applied non-vital package: aspnetwebpages2_1030, encountered error: 0x80070643. Continuing...
[1024:1040][2013-10-18T22:36:52]i325: Registering dependency: {9e6e5a9b-6f0e-40ff-84fb-19cab458402e} on package provider: Microsoft.ASP.NET.webpages_runtime,v2, package: aspnetwebpages2_1030
[1024:1040][2013-10-18T22:36:52]i301: Applying execute package: aspnetwebpages2vs12tools_1032, action: Install, path: C:\ProgramData\Package Cache\{64297226-2B81-4588-89BD-76440BC0BCFC}v4.1.21001.0\packages\WPT\aspnetwebpages2vs2013tools_enu.msi, arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" SKIP_SETUP="1"'
[0E84:0900][2013-10-18T22:37:05]i000: MUX: Installation size in bytes for package: aspnetwebpages2vs12tools_1032 MaxAppDrive: 0 MaxSysDrive: 9265152 AppDrive: 0 SysDrive: 5529600
[0E84:0900][2013-10-18T22:37:05]i000: MUX: Return Code:0x0 Msi Messages:0 Result Detail:RollbackCleanup Restart:None
[0E84:0900][2013-10-18T22:37:05]i000: MUX: Reset execution Result
[0E84:0900][2013-10-18T22:37:05]i000: MUX: Reset Result
答案 0 :(得分:2)
我在安装日志文件中遇到了相同的错误0x80070643,但在卸载Visual Studio 2012时。应用"修复它"解决方案"方法1" here解决了这个问题。
我必须运行"修复它" exe两次。运行一次后,错误被修复为一个组件(LightSwitch),但后来另一个组件失败。再次运行时,第二个组件错误得到修复。
我找到了解决方案here。
答案 1 :(得分:0)
两个MSI都有一个自定义操作,尝试写入根web.config。我可以想到它失败的两个原因。
<强> 1。 ASP.NET注册表项缺失
根web.config的路径是通过从注册表中读取一组键来确定的。
HKEY_LOCAL_MACHINE \ SOFTWARE \微软\ ASP.NET \ 4.0.30319.0 \路径 HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \微软\ ASP.NET \ 4.0.30319.0 \路径
如果缺少这些密钥,则自定义操作将无法找到根配置文件。 MSI日志 将显示更多细节,但您提到您清理了%temp%文件夹。再次运行Visual Studio安装(或进行修复)应生成新的日志文件,因为它将尝试重新安装失败的MSI。
如果没有注册表项且您在Windows 7上运行,则尝试运行aspnet_regiis.exe。 有关详细信息,请参阅http://msdn.microsoft.com/en-us/library/k6h9cz8h(v=vs.100).aspx。在Windows 8上,在使用DISM安装Visual Studio 2013期间会自动启用ASP.NET 4.5功能。
<强> 2。自定义操作无法加载
Windows Server 2008 R2上遇到的第二个故障是默认情况下禁用NetFx2-ServerCore-WOW64功能。自定义操作是托管代码,无法加载mscoree。发生这种情况时,MSI日志文件将显示类似于以下摘录的错误。
MSI (s) (54:84) [10:46:19:296]: Doing action: WebConfigInitialize
Action ended 10:46:19: NetFxScheduleNativeImage. Return value 1.
MSI (s) (54:DC) [10:46:19:358]: Invoking remote custom action. DLL: D:\Windows\Installer\MSI7432.tmp, Entrypoint: Initialize
Action start 10:46:19: WebConfigInitialize.
SFXCA: Extracting custom action to temporary directory: D:\Windows\Installer\MSI7432.tmp-\
SFXCA: Failed to load mscoree.dll (Error code 126). This custom action requires the .NET Framework to be installed.
CustomAction WebConfigInitialize returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
谢谢, 雅克
答案 2 :(得分:0)