Deploying MVC instances on Windows 7 IIS7.5

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.