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.