asp.net core deployment persistent ErrorCode = 

2019-08-30 05:20发布

问题:

I am having a persistent problem with ErrorCode = '0x80004005 : 8000808c. on win 2012r2 Deploying an updated app that uses:

 <PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.8" />

I have installed

dotnet-runtime-2.0.7-win-x64.exe
AspNetCore.2.0.7.RuntimePackageStore_x64.exe
DotNetCore.2.0.7-WindowsHosting.exe

and rebooted the machine but the problem persists. I've deployed the same files to IIS (not IIS EXpress) on my windows 10 dev box and it works fine there. Any ideas how to solve it?

回答1:

Microsoft made it not easy to find the relevant information.

Scroll down to ".NET Core Runtime-only installation" section in release notes, and it seems that all your 2.0.7 installers were the old ones, while Microsoft almost silently refreshed all of them to include the 2.0.8 bits (what a crazy idea).

The proof is that in your screen shot there is no "ASP.NET Runtime Core Package Store 2.0.8". And you probably used Framework Dependent Deployment, instead of Self Contained Deployment, which also amplifies the issue.