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