Home > database >  issue running app on IIS server, keep getting app failed to start
issue running app on IIS server, keep getting app failed to start

Time:01-05

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.

CodePudding user response:

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.

  •  Tags:  
  • Related