Web site Environment IIS6.0, operating system Windows Server2003 SP2, the server has already deployed a Web site for. NET 2.0 and ASP, and now you are deploying a newly developed. NET 4.0 Web site. Originally thought very simple, but encountered a lot of problems, the following detailed description of the process:
1. NET framework4.0, download address: http://www.microsoft.com/zh-cn/download/details.aspx?id=17718, or to the cloud Habitat Community download (http:// www.jb51.net/softs/69112.html), after downloading installation. The asp.net version of the original. NET 2.0 site will automatically upgrade to 4.0, so remember to change back to 2.0.
2. Modify the Web service Extensions for IIS, the default installation of the ASP.net v4.0.30319 is prohibited, to be modified to allow, as shown in figure 2-1; otherwise, there will be access to the Web page, there is no error found on the page 404;
Figure 2-1
3. Create an application pool for 4.0 programs, 2.0 and 4.0 Web sites cannot share an application pool, or you may have errors in the following figure 3-1 in My Computer-right-admin-system Tools-Event Viewer-application.
Figure 3-1
Via Internet Information Services-my application pool-new-application pool, pop up figure 3-2 below:
Figure 3-2
4, new. Net 4.0 Web site, check the application pool in the home directory, the following figure 4-1
Figure 4-1
And at the asp.net place tick asp.net version 4.0;
5, this time access to 2.0 and 4.0 Web site Service Unavailable, view Event Viewer reported the following error: HTTP filter DLL V4.0.30319\aspnet_filter.dll failed to load. Data is an error; Find documents found that someone with the Process Monitor tool monitor the W3wp.exe file access, found C:\Windows\System32\MSVCR100_CLR0400.dll This file does not have permissions, So find this file, do the following figure 5-1 action: Add Iis_