How to deploy Asp.net MVC2 website on IIS6

Source: Internet
Author: User

Deployment environment: Server 2003 + IIS6

1. install IIS6 first and then install it. net Framework 4.0 and Asp.net MVC installation packages (mainly a DLL in it, you can do it without installing it. You only need to find this DLL and change the MVC. DLL is placed in the bin directory of the website. The default path of this DLL file is c: \ Program Files \ Microsoft ASP. net \ ASP. net MVC 2 \ assemblies \ system. web. MVC. DLL)

 

2. Create a new website in IIS to set the Web main directory. This is not detailed.

 

3. On the published website, right-click Properties> Home directory> Configuration. In the displayed ApplicationProgramClick Add in the configuration window, and click browse to set executable files toC: \ windows \ Microsoft. NET \ framework \ v4.0.30319 \ aspnet_isapi.dll"," Extension "is set to". MVC ", cancel 【Check whether the file exists]

Click Insert below and select aspnet_isapi.dll to cancel the check if the file exists ].

On the published website, right-click Properties> APs. NET and set ASP. NET version to 4.0.30319.

 

4. In Web Service extension, set ASP. NET v4.0.30319 to allow

 

After the above configuration is complete, the test is successful. If you have any questions, please leave a message to discuss it!

 

PS:If you first install. NET Framework 4.0 and then install IIS, You need to register ASPnet to IIS by using the following method:

Note: run as an administrator.

Start the CMD window (win key + r) and find the directory where 4.0 is located. My machine directory is
C: \ windows \ Microsoft. NET \ framework \ v4.0.30319

Start cmd to enter the above directory c: \ windows \ Microsoft. NET \ framework \ v4.0.30319

Run aspnet_regiis.exe-I

Wait a moment. aspnet_regiis registered successfully.

 

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.