title: ASP.NET Core hosting - 500 internal server error
body: <p>I am trying to publish as ASP.NET Core project with a hosting provider that supports ASP.NET Core. I am getting 500 Internal Server Error which I believe is very common. So I searched through the internet and various forums and then I checked the <code>processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%"</code> in web.config and they look to be correctly converted with <code>processPath="dotnet" and arguments=".\MyApplication.dll"</code>.</p>
  
  <p>I also checked the connection string and it points to production DB server that's working. I confirmed the DB connection by changing the connection string to production DB and running project local. It works and I get the production DB access.</p>
  
  <p>I also tried to get the error info by using the below in my Startup.cs (irrespective of env):</p>
  
  <pre><code>app.UseDeveloperExceptionPage();
  app.UseDatabaseErrorPage();
  app.UseBrowserLink();
  </code></pre>
  
  <p>I have also enabled stdoutLog in web.config, but I don't see that folder either:</p>
  
  <pre><code>stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout"
  </code></pre>
  
  <p>I also tried to change applicationUrl and launchUrl in launchSettings.json to my prod Url, but that didn't work as well.</p>
  
  <p>So, the 500 Internal Server Error refuses to go away, and I still don't have a useful error message. The page just says:</p>
  
  <p><em>Oops.
  500 Internal Server Error
  An error occurred while starting the application.</em></p>
  
  <p>I would really appreciate if someone could help me here.</p>