title: issue running app on IIS server, keep getting app failed to start
body: <p>IIS 10 ASP.NET Core app failed to start</p>
  <p>Getting error HTTP Error 500.30 - ASP.NET Core app failed to start when i launch the web app. In event viewer i have:</p>
  <p>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.</p>
  <p>and</p>
  <p>Application '/LM/W3SVC/3/ROOT' with physical root 'C:\inetpub\wwwroot\MarCRM_Pro' failed to load coreclr. Exception message:
  CLR worker thread exited prematurely</p>
  <p>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.</p>
  <p>hopefully i can find some answer soon, i have been trying different things found by googling but so far no luck.</p>