When I try to deploy my MVC3 application on IIS7, on every URL I get Http 500 - Internal Server Error.
The site works fine in Visual Studio. And I can request simple html pages or aspx pages and they return in order. I tested if asp.net works by adding an aspx page that returns inline <% = DateTime.Now.ToShortDateString ()%>, which also works fine. Therefore, I think the problem is with MVC itself or routing itself.
MVC3 is installed on the server, but I also tried deploying bin, setting all the links related to MVC to copy local = true.
Any ideas?
Edit:
I turned on unsuccessful request tracing, which does not lead to errors.
Non-standard settings are disabled and detailed server errors:
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
<customErrors mode="Off"/>
The only thing I get is the 500 Internal Internal Error header with a blank page.
I checked the event log for the web server, did not find anything.
After some restarts, I get a slightly more detailed error:

source
share