My advertisement unit. Please click here. Thank you!
Cause: the MVC Architecture website that runs well in vs2008 cannot be accessed or redirected after being published to IIS. It is caused by URL routing (route redirection ).
References:
Http://www.cnblogs.com/JeffreyZhao/archive/2009/09/23/aspnet-mvc-iis-level-url-rewrite.html
This article focuses on the deployment of MVC on IIS6 of Windows2003. For other ideas, iis7 and so on can be referred online. It is not required in iis7 integration mode.
See IIS6. The deployment steps are as follows.
1. Install Asp.net MVCProgram
Aspnetmvc1.msi:
Http://www.microsoft.com/downloads/details.aspx? Familyid = 53289097-73ce-43bf-b6a6-35e00103cb4b & displaylang = en
2. Set IIS for the Asp.net MVC Program
1) "website properties" → "main directory" → "configuration"
2) Click Insert to insert the. net isapi to the wildcard application ing.
3) Select the ISAPI address: C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.50727 \ aspnet_isapi.dll.
Note: Do not select "check whether the file exists" here, otherwise the setting will not take effect!
In this way, the Asp.net MVC program is successfully deployed in iis6.0.