Program.X
Program.X

Reputation: 7412

ASP.NET MVC 4 on IIS 7.5, returns 404. Something to do with extensionless route mapping

I have deployed an MVC 4 web-site to a Windows 2008 R2 server with IIS 7.5. .NET 4.5 is installed on the server.

The site works fine locally. All routing works fine. However, when I put it on the server, nothing works. I have confirmed that the DNS/binding is working by putting a static text file in the site and this works.

Here's a few things I've tried:

I have tried/confirmed:

Am I missing something? My next act of desperation is to install the full ASP.NET MVC 4 stack including Visual Studio Express, SQL Express, etc. just to see if it works. Which I really don't want to do. This is a production server!

Update: I should add that the same site works on en equivalent configuration in-house, on a staging server.

Upvotes: 15

Views: 23026

Answers (1)

David Hollowell - MSFT
David Hollowell - MSFT

Reputation: 1065

I had this same issue. There's a hotfix you should try: http://support.microsoft.com/kb/980368 It fixed the issue for me.

Upvotes: 19

Related Questions