对于IIS Windows Server 2012R2, DotNetCore 1.0.1 WindowsHosting安装失败

时间:2021-12-17 18:15:40

Things I tried:

我试过的东西:

  • Running admin
  • 运行管理
  • Turning off UAC
  • 关掉UAC
  • Restarting machine
  • 重新启动机器
  • I am supposed to be admin on the machine
  • 我应该是机器上的管理员。

I have the following error log:

我有以下错误日志:

[0A48:124C][2016-09-16T13:28:19]i300: Apply begin
[0A48:124C][2016-09-16T13:28:19]i010: Launching elevated engine process.
[0A48:124C][2016-09-16T13:28:19]i011: Launched elevated engine process.
[0A48:124C][2016-09-16T13:28:20]i012: Connected to elevated engine.
[0D94:0270][2016-09-16T13:28:20]i358: Pausing automatic updates.
[0D94:0270][2016-09-16T13:28:20]i359: Paused automatic updates.
[0D94:0270][2016-09-16T13:28:20]i360: Creating a system restore point.
[0D94:0270][2016-09-16T13:28:20]i362: System restore disabled, system restore point not created.
[0D94:0270][2016-09-16T13:28:20]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{e39e00c9-09be-48bb-b175-01a07b3f7538}, resume: Active, restart initiated: No, disable resume: No
[0D94:08CC][2016-09-16T13:28:20]i304: Verified existing payload: AspNetCoreModule_x64 at path: C:\ProgramData\Package Cache\{4ADC4F4A-2D55-442A-8655-FBF619F94A69}v1.0.1967\packages\aspnetcoremodule_x64_en_rc2_39.msi.
[0D94:0270][2016-09-16T13:28:20]i301: Applying execute package: AspNetCoreModule_x64, action: Repair, path: C:\ProgramData\Package Cache\{4ADC4F4A-2D55-442A-8655-FBF619F94A69}v1.0.1967\packages\aspnetcoremodule_x64_en_rc2_39.msi, arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7"'
[0D94:08CC][2016-09-16T13:28:20]e000: Error 0x80070002: Failed to find payload: DotNetRedist_x64 in working path: C:\Users\OSCHEL~1\AppData\Local\Temp\2\{3C386474-F8E3-4928-8751-FBC35786E734}\DotNetRedist_x64 and unverified path: C:\ProgramData\Package Cache\.unverified\DotNetRedist_x64
[0D94:08CC][2016-09-16T13:28:20]e000: Error 0x80070002: Failed to cache payload: DotNetRedist_x64
[0A48:0A5C][2016-09-16T13:28:20]e314: Failed to cache payload: DotNetRedist_x64 from working path: C:\Users\OSCHEL~1\AppData\Local\Temp\2\{3C386474-F8E3-4928-8751-FBC35786E734}\DotNetRedist_x64, error: 0x80070002.
[0A48:0A5C][2016-09-16T13:28:20]e349: Application requested retry of payload: DotNetRedist_x64, encountered error: 0x80070002. Retrying...
[0D94:08CC][2016-09-16T13:28:20]i305: Verified acquired payload: DotNetRedist_x64 at path: C:\ProgramData\Package Cache\.unverified\DotNetRedist_x64, moving to: C:\ProgramData\Package Cache\21CBEEE3E1DCAA0BD8F9DA42A6230CF52F9F5A78\packages\DotNetCore.1.0.1-Runtime-x64.exe.
[0A48:124C][2016-09-16T13:28:21]i319: Applied execute package: AspNetCoreModule_x64, result: 0x0, restart: None
[0D94:0270][2016-09-16T13:28:21]i325: Registering dependency: {e39e00c9-09be-48bb-b175-01a07b3f7538} on package provider: IIS_AspNetCore_Module,x64, package: AspNetCoreModule_x64
[0D94:0270][2016-09-16T13:28:21]i301: Applying execute package: DotNetRedist_x64, action: Install, path: C:\ProgramData\Package Cache\21CBEEE3E1DCAA0BD8F9DA42A6230CF52F9F5A78\packages\DotNetCore.1.0.1-Runtime-x64.exe, arguments: '"C:\ProgramData\Package Cache\21CBEEE3E1DCAA0BD8F9DA42A6230CF52F9F5A78\packages\DotNetCore.1.0.1-Runtime-x64.exe" /quiet /norestart'
[0D94:0270][2016-09-16T13:28:30]e000: Error 0x80070490: Process returned error: 0x490
[0D94:0270][2016-09-16T13:28:30]e000: Error 0x80070490: Failed to execute EXE package.
[0A48:124C][2016-09-16T13:28:30]e000: Error 0x80070490: Failed to configure per-machine EXE package.
[0A48:124C][2016-09-16T13:28:30]i319: Applied execute package: DotNetRedist_x64, result: 0x80070490, restart: None
[0A48:124C][2016-09-16T13:28:30]e000: Error 0x80070490: Failed to execute EXE package.
[0D94:0270][2016-09-16T13:28:30]i351: Removing cached package: DotNetRedist_x64, from path: C:\ProgramData\Package Cache\21CBEEE3E1DCAA0BD8F9DA42A6230CF52F9F5A78\
[0D94:0270][2016-09-16T13:28:30]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{e39e00c9-09be-48bb-b175-01a07b3f7538}, resume: ARP, restart: None, disable resume: No
[0D94:0270][2016-09-16T13:28:30]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{e39e00c9-09be-48bb-b175-01a07b3f7538}, resume: ARP, restart initiated: No, disable resume: No
[0A48:124C][2016-09-16T13:28:31]i399: Apply complete, result: 0x80070490, restart: None, ba requested restart:  No

2 个解决方案

#1


16  

I had the same problem and I fixed it by installing this package http://go.microsoft.com/fwlink/?LinkID=615460&clcid=0x409

我遇到了同样的问题,我通过安装这个包(http://go.microsoft.com/fwlink/?

The logs from the DotNetCore.1.0.1-WindowsHosting installation weren't very helpful, so I tried to install the DotNetCore.1.0.1-SDK.1.0.0.Preview2-003131-x64 package which also failed. However, the SDK Preview 2 logs had more information and it showed that it failed due to a problem acquiring this package.

来自DotNetCore.1.0.1-WindowsHosting安装的日志并不是很有用,所以我尝试安装dotnetcore .1.0.1- sdk1.0.0。Preview2-003131-x64包也失败。但是,SDK预览2日志有更多的信息,并且显示它失败是由于获取这个包的问题。

ERROR from log: Acquiring package: VC_redist.x64.exe, payload: VC_redist.x64.exe, download from: http://go.microsoft.com/fwlink/?LinkID=615460&clcid=0x409

日志错误:获取包:VC_redist.x64。exe,有效载荷:VC_redist.x64。exe,下载:http://go.microsoft.com/fwlink/?LinkID=615460&clcid=0x409

After manually downloading and installing this package I was able to install both Windows Hosting and SDK Preview 2 on my server.

在手动下载并安装这个包之后,我可以在我的服务器上安装Windows主机和SDK预览2。

#2


3  

From .NET Framework Downloads page:

从。net Framework下载页面:

You can download the Windows (Server Hosting) installer and run the following command from an Administrator command prompt:

您可以下载Windows(服务器托管)安装程序,并从管理员命令提示符运行以下命令:

DotNetCore.1.0.1-WindowsHosting.exe OPT_INSTALL_REDIST=0

DotNetCore.1.0.1-WindowsHosting。exe OPT_INSTALL_REDIST = 0

#1


16  

I had the same problem and I fixed it by installing this package http://go.microsoft.com/fwlink/?LinkID=615460&clcid=0x409

我遇到了同样的问题,我通过安装这个包(http://go.microsoft.com/fwlink/?

The logs from the DotNetCore.1.0.1-WindowsHosting installation weren't very helpful, so I tried to install the DotNetCore.1.0.1-SDK.1.0.0.Preview2-003131-x64 package which also failed. However, the SDK Preview 2 logs had more information and it showed that it failed due to a problem acquiring this package.

来自DotNetCore.1.0.1-WindowsHosting安装的日志并不是很有用,所以我尝试安装dotnetcore .1.0.1- sdk1.0.0。Preview2-003131-x64包也失败。但是,SDK预览2日志有更多的信息,并且显示它失败是由于获取这个包的问题。

ERROR from log: Acquiring package: VC_redist.x64.exe, payload: VC_redist.x64.exe, download from: http://go.microsoft.com/fwlink/?LinkID=615460&clcid=0x409

日志错误:获取包:VC_redist.x64。exe,有效载荷:VC_redist.x64。exe,下载:http://go.microsoft.com/fwlink/?LinkID=615460&clcid=0x409

After manually downloading and installing this package I was able to install both Windows Hosting and SDK Preview 2 on my server.

在手动下载并安装这个包之后,我可以在我的服务器上安装Windows主机和SDK预览2。

#2


3  

From .NET Framework Downloads page:

从。net Framework下载页面:

You can download the Windows (Server Hosting) installer and run the following command from an Administrator command prompt:

您可以下载Windows(服务器托管)安装程序,并从管理员命令提示符运行以下命令:

DotNetCore.1.0.1-WindowsHosting.exe OPT_INSTALL_REDIST=0

DotNetCore.1.0.1-WindowsHosting。exe OPT_INSTALL_REDIST = 0