To deploy MVC4 Application onto IIS 7.5
- Make sure that you installed the latest framework.
- Go to
%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe –ir
for 32 bit or%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe –ir
for 64 to register asp.net - To be able to work with sites in MVC for IIS7 ir IIS7.5 please update it (http://support.microsoft.com/kb/980368).(Good)
Make sure that there is:
<modules> <remove name="UrlRoutingModule-4.0" /> <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" /> <!-- any other modules you want to run in MVC e.g. FormsAuthentication, Roles etc. --> </modules>
in web.config. (Good)
Make sure that there is
<system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer>
in web.config.(Bad)
from own experience... use "Good"