Hi I want to publish an MVC 3 site in Windows Server 2008 R2 SP1. I installed MVC 3 and MVC 2. When I created an MVC 2 site, it worked fine but the MVC 3 site did not work.
For ASP.NET MVC 3.0 on IIS 7.5 Windows Server 2008, I found that I had to run aspnet_regiis -i
from the C:\Windows\Microsoft.NET\Framework\<version>
folder. This resolved the problem.
I was receiving this error when I deployed the Microsoft tutorial application ContsosoUniversity exactly according to the tutorial guidelines (http://www.asp.net/mvc/tutorials/deployment). After trying all the recommendations of multiple posts I resolved this problem by deleting all other applications in the root directory (from within IIS Manager) and re-deploying the application. One of the other applications in the DefaultAppPool (within which it runs) must have been interfering.
I had the same problem on Server 2008 x64 version. ASP.NET MVC3 site does not work. I check everything in IIS. The problem was solved only after turning on HTTP Redirection service in IIS role.
For Windows 7 check this location: Windows Features -> Internet Information Services -> World Wide Web Services -> Common HTTP features -> HTTP Redirection
.