MVC3.0 deployment in various versions of IIS and mvc3.0iis deployment

Source: Internet
Author: User

MVC3.0 deployment in various versions of IIS and mvc3.0iis deployment

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,

Extension :.*

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 pool of the website and set 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 the "CompilerVersion" error needs to be modified, see the configuration -- system. codedom configuration section in the following code to modify or add the website's Web. config:

<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>


Mvc website IIS deployment problems

What problems have you encountered? You can directly deploy it in win7,
MvcApplication1.dll, System. Web. Actions. dll, System. Web. Mvc. dll, and System. Web. Routing. dll must be available in the bin directory.
Find them in references in VS and change the attribute of "Copy to local" to "true.
However, an error occurs when you browse the entire path at the beginning,
For example, 127.0.0.1/Views/Home/Index. aspx may cause errors,
Change to 127.0.0.1/Home/Index.

How to deploy the mvc30 project to iis70 and set it? The system still prompts that the directory 403 is not listed and so on.

Is mvc3 installed on iis7?

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.