Wednesday, 18 July 2012

MVC 4.0 on IIS 7, 404, 403 errors.

It seems that every time I deploy a new site to IIS there is some problem this time it is an MVC 4.0 App to a machine that does not have visual studio or ASP.NET MVC Installed.

First I got error 404 not found, so I tried a few things that didn’t work including the usual suspects

Registering .NET 4.0 with IIS (which it wasn’t):


Then I started to get 403 – Forbidden.

In the end enabling the HTTP Redirection fixed it:


This post was particularly useful and contained the answer.

No comments:

Post a Comment