First, deployment readiness:
1. Install the Microsoft. NET FrameWork 4.0 Package
http://www.microsoft.com/zh-cn/download/details.aspx?id=17718
2. Install ASP. NET MVC 3.0
http://www.microsoft.com/en-us/download/details.aspx?id=4211
3. Publish the MVC Web application (or copy the published directory to the computer where IIS resides)
Second, IIS7.5 Deployment
1. modifying ISAPI and CGI Restrictions
If the "Limit" for ASP. NET v4.0.30319 is "disallowed", change it to "allow"
After modification, as shown in:
2. "Add Application Pool" on the application and select the . Net Framework v4.0.30319 version
This is named "ASP. V4.0"
3. Right click on website "Add site"
Physical Path Selection MVC Directory of Web application release versions
4. Select an application pool for the Web site
At this point, the deployment is complete! As follows:
Third, common exception handling:
1 . . Net Framework 4.0 Registration issues
Errors and hints:
"Failed from assembly" System.ServiceModel, version=3.0.0.0, Culture=neutral,
publickeytoken=b77a5c561934e089 "Load Type" System.ServiceModel.Activation.HttpModule ". ”
Solve:
There is a version problem here, loading 3.0 DLL phenomenon. This is said to be the reason why you installed IIS7.5 after you installed the. Net Framework 4.0 first.
Then re-registering the. NET Framework 4.0 with the aspnet_regiis.exe of the NET Framework 4.0.
Enter "C:\Windows\Microsoft.NET\Framework64\v4.0.30319" after running cmd
The execution statement is: "Aspnet_regiis.exe–iru"
2. issues with extensions disabled
Error: 404.7 The request filtering rule has the extension disabled
workaround: In the request filtering settings, the. cshtml allowed to False item is deleted.
3. Page view Test
Browse the page, can come out the corresponding page content, then indicates success.
Reprint: http://www.fengfly.com/plus/view-213227-1.html
Deploying MVC instances on Windows 7 IIS7.5