3

IIS 10 ASP.NET Core app failed to start

Getting error HTTP Error 500.30 - ASP.NET Core app failed to start when i launch the web app. In event viewer i have:

Application '/LM/W3SVC/3/ROOT' with physical root 'C:\inetpub\wwwroot\MarCRM_Pro' has exited from Program.Main with exit code = '1'. Please check the stderr logs for more information.

and

Application '/LM/W3SVC/3/ROOT' with physical root 'C:\inetpub\wwwroot\MarCRM_Pro' failed to load coreclr. Exception message: CLR worker thread exited prematurely

The app on Visual Studio 2019 works when i run it then i publish it to a folder and copy that to the IIS server.

hopefully i can find some answer soon, i have been trying different things found by googling but so far no luck.

jps
  • 20,041
  • 15
  • 75
  • 79
ASys
  • 89
  • 1
  • 5
  • Can you run a report to show more about your IIS settings? https://docs.jexusmanager.com/tutorials/ancm-diagnostics.html – Lex Li Dec 31 '21 at 22:40
  • What's the .net core version you using? If it is 3.1, please upgrade it to .net 5 and publish again. If it is .net 5, please check application pool if it disable 32 bit application. then rebuild the application again in visual studio and publish again.(delete the original published application) – Bruce Zhang Jan 03 '22 at 02:34

1 Answers1

5

I was able to find a fix to this by changing in web.config file.

In the web.config file had to change the hostingModel="OutOfProcess" from "InProcess"

Post where i was able to find this fix. .NET Core 3.0 and IIS: HTTP Error 500.30 - ANCM In-Process Start Failure: failed to load coreclr

Thanks for your input guys.

Peter Csala
  • 17,736
  • 16
  • 35
  • 75
ASys
  • 89
  • 1
  • 5