title: asp.net core app deployed on iis meets 500 internal server error
body: <blockquote>
    <p>:( Oops.
    500 Internal Server Error 
    An error occurred while starting the application.</p>
  </blockquote>
  
  <p>This message came out when I added database functionality to my asp.net core app and deployed it to iis. When I developed it in Visual Studio, everything went well. But after deploying, this error messages appeared. </p>
  
  <p>I tried to use <code>dotnet myapp.dll</code> to run my app in the deploy folder, and found out it worked well. It is likely that the problem is relation to iis. I tried to add <code>&lt;compilation debug="true"&gt;..&lt;/compilation&gt;</code> to web.config, but it seems useless. What is problem are actually, or is there any other way to see the detailed error info to help find out what's happened?</p>