Deploying MVC3 Application in IIS7 Always Returns Http 500 - Internal Server Error

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:

http500

+5
source share
1 answer

You get 500 errors at each URL that the error occurred in a very early state, for example, when the application started, and your request is not even processed by the request pipeline. Check the MVC environment and make sure all dependent libraries are installed correctly. It is very difficult to say what happens without seeing the actual error message.

Good luck.

+1
source

All Articles