我使用Visual Studio 2015 Update 3,我试图安装asp .net核心工具包(DotNetCore.1.0.1-VS2015Tools.Preview2.0.3.exe)
我通过单独下载或单击时获取此信息 " ASP .NET 5 RC"在VS中创建新的ASP Net Web应用程序时的模板。 在安装过程中一段时间后,我收到错误
"找不到元素0x80070490"
(另见底部的日志文件)
经过一番搜索:
我尝试从cmd(作为管理员)启动它,标志为SKIP_VSU_CHECK = 1 我试图重新安装VC ++ Distributables,这些只是在从模板创建项目时给我带来更多错误。我有英语作为我的VS语言。我也试过下载了v1.1,它安装好了,但我看不出Visual Studio中的任何区别
这是安装失败后日志文件的结尾:
[1E4C:1E48] [2017-01-17T09:58:01] i360:创建系统还原点。
[1E4C:1E48] [2017-01-17T09:58:01] i361:创建了一个系统还原点。
[1E4C:1E48] [2017-01-17T09:58:01] i371:更新会话,注册 键: SOFTWARE \微软\的Windows \ CurrentVersion \卸载{da280276-4f5b-4918-8d40-20ca56dfa535}, resume:Active,restart started:否,禁用resume:否
[1E4C:1FD0] [2017-01-17T09:58:02] i305:已验证的已获得有效负载: SetupBlocked_Install在路径:C:\ ProgramData \ Package Cache.unverified \ SetupBlocked_Install,移至: C:\ ProgramData \包 缓存\ f727b670-667c-3e6f-aafb-e48a72a2dea2 \ SetupBlocked_69.exe。
[1E4C:1E48] [2017-01-17T09:58:02] i301:应用执行包: SetupBlocked_Install,action:Install,path:C:\ ProgramData \ Package 缓存\ f727b670-667c-3e6f-aafb-e48a72a2dea2 \ SetupBlocked_69.exe, 参数:'" C:\ ProgramData \ Package 缓存\ f727b670-667c-3e6f-aafb-e48a72a2dea2 \ SetupBlocked_69.exe"'
[1E4C:1FD0] [2017-01-17T09:58:02] i305:已验证的已获得有效负载: 路径上的Preparation_Uninstall_ASPNET:C:\ ProgramData \ Package Cache.unverified \ Preparation_Uninstall_ASPNET,移至: C:\ ProgramData \包 缓存\ 50e2672c-aefb-300C-8301-d8ebba628476 \ Preparation_69.exe。
[1E4C:1FD0] [2017-01-17T09:58:02] i304:已验证现有有效负载: 路径上的ANCM_IISExpress_x64:C:\ ProgramData \ Package 缓存{C2BB4C41-59DC-487E-9CCF-1E21C3AC9139} v1.0.1967 \包\ ancm_iis_express_x64_en_69.msi。
[0D30:1FB0] [2017-01-17T09:58:02] w343:提示包裹来源: DotNetCLI_x64,有效载荷:DotNetCLI_x64,路径: C:\ Users \用户MYACCOUNTNAME \下载\包\ DotNetCore.1.0.1-SDK.1.0.0.Preview2-003131-x64.exe程序
[0D30:1FB0] [2017-01-17T09:58:02] i338:获取套餐: DotNetCLI_x64,有效载荷:DotNetCLI_x64,下载地址: https://download.microsoft.com/download/F/6/E/F6ECBBCC-B02F-424E-8E03-D47E9FA631B7/packages/DotNetCore.1.0.1-SDK.1.0.0.Preview2-003131-x64.exe
[1E4C:1FD0] [2017-01-17T09:58:09] i305:已验证的已获得有效载荷: 路径上的DotNetCLI_x64:C:\ ProgramData \ Package Cache.unverified \ DotNetCLI_x64,移至:C:\ ProgramData \ Package 缓存\ 8B4ACC662D4A8759AB418CA5F92FE4721D21B190 \包\ DotNetCore.1.0.1-SDK.1.0.0.Preview2-003131-x64.exe程序。
[0D30:1FB0] [2017-01-17T09:58:09] w343:提示包裹来源: DotNetVersionManager_x64,有效负载:DotNetVersionManager_x64,路径: C:\ Users \用户MYACCOUNTNAME \下载\包\ DotNetVersionManager-x64_rc1.msi
[0D30:1FB0] [2017-01-17T09:58:09] i338:获取套餐: DotNetVersionManager_x64,有效载荷:DotNetVersionManager_x64,下载 从: https://download.microsoft.com/download/F/6/E/F6ECBBCC-B02F-424E-8E03-D47E9FA631B7/packages/DotNetVersionManager-x64_rc1.msi
[1E4C:1FD0] [2017-01-17T09:58:10] i305:已验证的已获得有效负载: DotNetVersionManager_x64在路径:C:\ ProgramData \ Package Cache.unverified \ DotNetVersionManager_x64,移至: C:\ ProgramData \包 缓存{4EC36977-42B9-3C18-A692-B9DEE7404484} v1.0.11123.0 \包\ DotNetVersionManager-x64_rc1.msi。
[0D30:1FB0] [2017-01-17T09:58:10] w343:提示包裹来源: AspNetCoreLocalFeed,有效负载:AspNetCoreLocalFeed,路径: C:\ Users \用户MYACCOUNTNAME \下载\包\ AspNetCoreLocalFeed_69.msi
[0D30:1FB0] [2017-01-17T09:58:10] i338:获取套餐: AspNetCoreLocalFeed,有效载荷:AspNetCoreLocalFeed,从以下网址下载: https://download.microsoft.com/download/F/6/E/F6ECBBCC-B02F-424E-8E03-D47E9FA631B7/packages/AspNetCoreLocalFeed_69.msi
[0D30:1E1C] [2017-01-17T09:58:15] i319:应用执行包: SetupBlocked_Install,结果:0x0,重启:无
[1E4C:1E48] [2017-01-17T09:58:15] i301:应用执行包: Preparation_Uninstall_ASPNET,action:Install,path: C:\ ProgramData \包 缓存\ 50e2672c-aefb-300C-8301-d8ebba628476 \ Preparation_69.exe, 参数:'" C:\ ProgramData \ Package 缓存\ 50e2672c-aefb-300C-8301-d8ebba628476 \ Preparation_69.exe" / d'
[0D30:1E1C] [2017-01-17T09:58:15] i319:应用执行包: Preparation_Uninstall_ASPNET,结果:0x0,重启:无
[1E4C:1E48] [2017-01-17T09:58:15] i301:应用执行包: ANCM_IISExpress_x64,动作:修复,路径:C:\ ProgramData \ Package 缓存{C2BB4C41-59DC-487E-9CCF-1E21C3AC9139} v1.0.1967 \包\ ancm_iis_express_x64_en_69.msi, 争论:' ARPSYSTEMCOMPONENT =" 1" MSIFASTINSTALL =" 7"'
[1E4C:1E48] [2017-01-17T09:58:18] e000:错误0x80070652:无法运行 MSI包的维护模式。
[1E4C:1E48] [2017-01-17T09:58:18] e000:错误0x80070652:失败 执行MSI包。
[0D30:1E1C] [2017-01-17T09:58:18] e000:错误0x80070652:未能成功 配置每台机器的MSI包。
[0D30:1E1C] [2017-01-17T09:58:18] w348:请求申请重试 包:ANCM_IISExpress_x64,遇到错误:0x80070652。 重试...
[1E4C:1E48] [2017-01-17T09:58:21] i301:应用执行包: ANCM_IISExpress_x64,动作:修复,路径:C:\ ProgramData \ Package 缓存{C2BB4C41-59DC-487E-9CCF-1E21C3AC9139} v1.0.1967 \包\ ancm_iis_express_x64_en_69.msi, 争论:' ARPSYSTEMCOMPONENT =" 1" MSIFASTINSTALL =" 7"'
[1E4C:1FD0] [2017-01-17T09:58:24] i305:已验证的已获得的有效载荷: 路径上的AspNetCoreLocalFeed:C:\ ProgramData \ Package Cache.unverified \ AspNetCoreLocalFeed,转移到: C:\ ProgramData \包 缓存{37BEAEAD-FEB0-3B82-9B32-710E0776FFAD} v1.0.20907.0 \包\ AspNetCoreLocalFeed_69.msi。
[1E4C:1FD0] [2017-01-17T09:58:24] i304:验证现有有效载荷: 位于路径的NuGetVS14:C:\ ProgramData \ Package 缓存{08D9540E-77B1-37B3-909A-813DAA5523D0} v3.5.0.1484 \包\ NuGetVisualStudio14_69.msi。
[1E4C:1FD0] [2017-01-17T09:58:24] i304:验证现有有效载荷: 路径为cabFB5D09005B6CCD7291B309F84DC6E0E2:C:\ ProgramData \ Package 缓存{08D9540E-77B1-37B3-909A-813DAA5523D0} v3.5.0.1484 \包\ nuget14_VisualStudio.cab。
[0D30:1FB0] [2017-01-17T09:58:24] w343:提示包裹来源: WebToolsExtensionsVS14,payload:WebToolsExtensionsVS14,路径: C:\ Users \用户MYACCOUNTNAME \下载\包\ WebToolsExtensionsVS14_69.msi
[0D30:1FB0] [2017-01-17T09:58:24] i338:获取套餐: WebToolsExtensionsVS14,有效载荷:WebToolsExtensionsVS14,下载 从: https://download.microsoft.com/download/F/6/E/F6ECBBCC-B02F-424E-8E03-D47E9FA631B7/packages/WebToolsExtensionsVS14_69.msi
[0D30:1E1C] [2017-01-17T09:58:27] i319:应用执行包: ANCM_IISExpress_x64,结果:0x0,重启:无
[1E4C:1E48] [2017-01-17T09:58:27] i325:注册依赖: 包提供商提供的{da280276-4f5b-4918-8d40-20ca56dfa535}: IISExpress_AspNetCore_Module,x64,包:ANCM_IISExpress_x64
[1E4C:1E48] [2017-01-17T09:58:27] i301:应用执行包: DotNetCLI_x64,动作:安装,路径:C:\ ProgramData \ Package 缓存\ 8B4ACC662D4A8759AB418CA5F92FE4721D21B190 \包\ DotNetCore.1.0.1-SDK.1.0.0.Preview2-003131-x64.exe程序, 参数:'" C:\ ProgramData \ Package 缓存\ 8B4ACC662D4A8759AB418CA5F92FE4721D21B190 \包\ DotNetCore.1.0.1-SDK.1.0.0.Preview2-003131-x64.exe程序" / quiet / norestart'
[1E4C:1FD0] [2017-01-17T09:58:39] i305:已验证的已获得有效载荷: 路径上的WebToolsExtensionsVS14:C:\ ProgramData \ Package Cache.unverified \ WebToolsExtensionsVS14,转移到: C:\ ProgramData \包 缓存{BFC344B0-DCDE-36EB-AB05-CB194F2BE946} v14.1.21111.0 \包\ WebToolsExtensionsVS14_69.msi。
[0D30:1FB0] [2017-01-17T09:58:39] w343:提示包裹来源: DotNetToolsVS14,有效载荷:DotNetToolsVS14,路径: C:\ Users \用户MYACCOUNTNAME \下载\包\ DotNetToolsVS14_69.msi
[0D30:1FB0] [2017-01-17T09:58:39] i338:获取套餐: DotNetToolsVS14,有效载荷:DotNetToolsVS14,下载地址: https://download.microsoft.com/download/F/6/E/F6ECBBCC-B02F-424E-8E03-D47E9FA631B7/packages/DotNetToolsVS14_69.msi
[1E4C:1FD0] [2017-01-17T09:58:40] i305:已验证的已获得有效负载: 路径上的DotNetToolsVS14:C:\ ProgramData \ Package Cache.unverified \ DotNetToolsVS14,移至:C:\ ProgramData \ Package 缓存{0DFDFA4C-B434-3535-95DA-C5DAFDD5B1CF} v14.1.21111.0 \包\ DotNetToolsVS14_69.msi。
[1E4C:1FD0] [2017-01-17T09:58:40] i305:已验证的已获得有效负载: 路径上的Preparation_ASPNET:C:\ ProgramData \ Package Cache.unverified \ Preparation_ASPNET,移至: C:\ ProgramData \包 缓存\ 4f0b7b02-eb23-3261-a713-a05662eaa53e \ Preparation_69.exe。
[1E4C:1E48] [2017-01-17T09:58:45] e000:错误0x80070490:流程 返回错误:0x490
[1E4C:1E48] [2017-01-17T09:58:45] e000:错误0x80070490:未能成功 执行EXE包。
[0D30:1E1C] [2017-01-17T09:58:45] e000:错误0x80070490:未能成功 配置每台机器的EXE包。
[0D30:1E1C] [2017-01-17T09:58:45] i319:应用执行包: DotNetCLI_x64,结果:0x80070490,重启:无
[0D30:1E1C] [2017-01-17T09:58:45] e000:错误0x80070490:未能成功 执行EXE包。
[1E4C:1E48] [2017-01-17T09:58:45] i351:删除缓存包: DotNetCLI_x64,来自路径:C:\ ProgramData \ Package 缓存\ 8B4ACC662D4A8759AB418CA5F92FE4721D21B190 \
[1E4C:1E48] [2017-01-17T09:58:45] i372:会话结束,注册码: SOFTWARE \微软\的Windows \ CurrentVersion \卸载{da280276-4f5b-4918-8d40-20ca56dfa535}, resume:ARP,restart:None,禁用resume:否
[1E4C:1E48] [2017-01-17T09:58:45] i371:更新会话,注册 键: SOFTWARE \微软\的Windows \ CurrentVersion \卸载{da280276-4f5b-4918-8d40-20ca56dfa535}, 恢复:ARP,重启已启动:否,禁用恢复:否
[0D30:1E1C] [2017-01-17T09:58:46] i399:申请完成,结果: 0x80070490,重启:无,请求重启:否
答案 0 :(得分:2)
我有一个完全相同的问题,但我找到了解决方案,希望它能帮助你或其他人。
首先,我使用commad(在cmd中)下载安装DotNetCore.1.0.1-VS2015Tools.Preview2.0.3所需的所有软件包:
DotNetCore.1.0.1-VS2015Tools.Preview2.0.3.exe /layout
它使用一堆.msi文件创建packages目录。 日志中的第一个错误是关于DotNetToolsVS14_69.msi,所以我已经安装了它。 然后我尝试安装DotNetCore.1.0.1-SDK.1.0.0.Preview2-003131-x64.exe, 但错误显示"元素未找到0x80070490"关于Visual C ++ 2015 Redistributable 14.0.24215。我无法安装它,因为我已经有版本14.10(来自VS 2017)。所以我卸载版本14.10安装14.0.24215然后我就能安装DotNetCore.1.0.1-SDK.1.0.0.Preview2-003131-x64.exe。
下一步是再次尝试使用DotNetCore.1.0.1-VS2015Tools.Preview2.0.3.exe并成功安装。