MVC 3.0 deployment in various versions of IIS

Source: Internet
Author: User
ArticleDirectory
    • Note:

Overview:

Recently, I am working on an MVC 3 Project, which has made some effort to deploy servers. I want to help you sort out the process!

This article describes how to install and configure MVC 3 in iis5.1, iis6.0, and iis7.5!

Body:

Iis5.1

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

2. Install ASP. net mvc 3;

3. Publish a website in IIS, create a virtual directory, and select 4.0.30196 for ASP. NET;

4. Add MVC parsing:

Right-click the virtual directory in IIS and select "properties"-"virtual directory"-"configuration"-" ing"-"add". The configuration is as follows:

Executable File: C: \ WINDOWS \ Microsoft. NET \ framework \ v4.0.30196 \ aspnet_isapi.dll,

Extension :.*

Action: all actions

Script Engine: Selected

Check whether the file exists: not selected

Click OK, as shown in the following figure:

Iis6.0

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

2. Install ASP. net mvc 3;

3. Set "ASP. NET v4.0.0.30319" in "Web Extension Service" to allow, as shown in:

4. Publish a website in IIS, create a virtual directory, and select 4.0.30196 for ASP. NET;

5. Add MVC parsing:

Right-click a website in IIS and choose "properties"> "main directory"> "configuration"> "ing"> "insert". The configuration is as follows:

Executable File: C: \ WINDOWS \ Microsoft. NET \ framework \ v4.0.30196 \ aspnet_isapi.dll,

Check whether the file exists: not selected

Click OK, as shown in the following figure:

Iis7.5

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

2. Install ASP. net mvc 3;

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

4. Publish a website in IIS;

5. Edit the application of the websiteProgramSet the. NET Framework version to 4.0.30196;

Note:

1. Net framework4:

Http://www.microsoft.com/downloads/zh-cn/details.aspx? Familyid = 0a391abd-25c1-4fc0-919f-b21f31ab88b7

2. MVC 3:

Http://www.microsoft.com/downloads/en/details.aspx? Familyid = d2928bc1-f48c-4e95-a064-2a455a22c8f6

3. If IIS is installed only after the Net Framework is installed, register the Net Framework in IIS again and enter:

C: \ windows \ Microsoft. NET \ framework \ v4.0.30319 \ aspnet_regiis.exe-I

4. If"To compile for. NET Framework 4.0 or later, the value of the "compilerversion" feature in the provider options must be "v4.0" or later. To compile this web application for. NET Framework 3.5 or earlier, remove the targetframework feature from the <compilation> element of the web. config file. "Error. refer to the followingCodeModify 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  > 

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.