HTTP Error 500.30 – ANCM In-Process Start Failure

Step 5, check whether the program is normal, directly run the release file of XXx. exe. Then go to http://localhost:5000, which works fine if you can
1. Execute the released EXE program and report the following errors:

It was not possible to find any compatible framework version
The specified framework 'Microsoft.AspNetCore.App', version '2.2.6' was not found.
  - Check application dependencies and target a framework version installed at:
      C:\Program Files (x86)\dotnet
  - Installing .NET Core prerequisites might help resolve this problem:
      https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
  - The .NET Core framework and SDK can be installed from:
      https://aka.ms/dotnet-download
  - The following versions are installed:
      2.2.3 at [C:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]

Install version 2.2.6

var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIIS()
// 500.30 error
//.UseIISIntegration()
.UseStartup<Startup>()
.Build();

 

Read More: