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.