3

安装 vs2013 RTM 时,web 开发者和 asp.net 运行时包设置失败。

我从安装日志文件中发现了一些错误信息:

网络开发者工具信息:

[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
4

3 回答 3

2

我在安装日志文件中遇到了同样的错误 0x80070643,但是在卸载 Visual Studio 2012 时。在此处应用“方法 1”中的“修复它”解决方案解决了该问题。

我不得不运行两次“修复它”exe。运行一次后,一个组件(LightSwitch)的错误已修复,但后来另一个组件失败。再次运行它,第二个组件错误得到了修复。

我在这里找到了解决方案。

于 2014-07-17T11:10:54.807 回答
0

两个 MSI 都有一个尝试写入根 web.config 的自定义操作。我可以想到它失败的两个原因。

1. ASP.NET 注册表项丢失

根 web.config 的路径是通过从注册表中读取一组键来确定的。

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\4.0.30319.0\Path HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\ASP.NET\4.0.30319.0\Path

如果这些键不存在,则自定义操作将无法找到根配置文件。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)

谢谢, 雅克

于 2013-11-20T22:23:11.203 回答
0

在安装 Visual Studio 2013 Professional 期间,我也遇到了同样的错误。经过一些研究,我在这里创建了一些东西。几周前我还为一个 php 项目安装了MAMP ,我不得不在设备管理器(隐藏设备)上禁用 HTTP 以让 Apache 在端口 80 上启动。所以我只需将HTTP 驱动程序启动选项设置回“需求”(如下图所示),然后我重新启动了 Visual Studio 2013 安装......成功!

在此处输入图像描述

于 2014-12-04T07:28:03.583 回答