MVC3 deployment in various versions of IIS

Source: Internet
Author: User

This article mainly describes the installation of MVC 3 in IIS5.1, IIS6.0, IIS7.5, the specific way!

Body:

IIS5.1

1. Install the Microsoft. NET FrameWork 4.0 installation package;

2. Install ASP. NET MVC 3;

3. Publish the Web site in IIS, create the virtual directory, ASP. NET version selection 4.0.30196;

4. Add MVC parsing:

Right-click the virtual directory in IIS select Properties-Virtual directory-configuration-mappings-add, configured as follows:

Executable file: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30196\aspnet_isapi.dll,

Extension:. *

Action: All actions

Scripting Engine: Check

Check if file exists: unchecked

Click OK, as shown in the last example:

IIS6.0

1. Install the Microsoft. NET FrameWork 4.0 installation package;

2. Install ASP. NET MVC 3;

3. Set the "ASP. v4.0.0.30319" in the Web Extension service to allow

4. Publish the Web site in IIS, create the virtual directory, ASP. NET version selection 4.0.30196;

5. Add MVC parsing:

Right-click the Web site in IIS select Properties-Home Directory-Configuration-mappings-insert, configured as follows:

Executable file: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30196\aspnet_isapi.dll,

Extension:. *

Verify that the file exists: unchecked

IIS7.5

1. Install the Microsoft. NET FrameWork 4.0 installation package;

2. Install ASP. NET MVC 3;

3. Set the "ASP. v4.0.0.30319" in "ISAPI and CGI restrictions" for IIS to allow, as shown in:

4. Publish the Web site in IIS;

5. Edit the application pool for the Web site and set the. NET Framework version to 4.0.30196;

Precautions:

1. NET Framework4 Download point here

2. MVC 3 Download point here

3. If IIS is installed after the NET Framework is installed, please re-register the NET Framework in IIS and enter it in the run:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe-i

4. If you need to modify the "CompilerVersion" error, please refer to the code below to modify or add the Configuration--system.codedom configuration section in Web. config of the website:

< system.codedom >

< compilers >   

< compiler   language = "C#;cs;csharp"   extension = ". cs"   type = "Microsoft.csharp.csharpcodeprovider,system, version=2.0.0.0, culture=neutral, publickeytoken= b77a5c561934e089 "   warninglevel = "4" >   

< provideroption name="CompilerVersion" value="v4.0" />   

< provideroption name="warnaserror" value=" False "/>

</ compiler >   

< compiler language="vb;vbs;visualbasic;vbscript" extension = ". vb"  type="Microsoft.VisualBasic.VBCodeProvider, System, version=2.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089 " warninglevel=" 4 " >

< provideroption name="CompilerVersion" value="v4.0" />   

< provideroption name="Optioninfer" value=" True "/>

< provideroption name="warnaserror" value="false" />

</ compiler >   

</ compilers >   

</ system.codedom >

From

Alecrichard ' s Blog

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.