Preface: These mistakes are purely the problems that they encounter when developing the project, and they are more targeted. If there is no solution to the problem, do not spray.
Problem Description:
. net4.0 after the project is created, the project is deployed on IIS and cannot be browsed, prompting 404
Build the environment of the project:
The project was established under. net4.0, and the. NET class library referenced by the project is version 4.0, IIS version 6.0 System window Service 2003
Workaround:
First, check to see if the ASP.net version of the Web site is 4.0 in IIS.
Second, open the Web service extension to see if there are any asp.netv4.0 in the Web service extensions. If there is a look disabled, if the change condition is disabled to allow.
Third, if there is no asp.netv4.0 in the Web service extension, click "Add a new Web service extension" with the extension asp.netv4.0.
Four, click Add, browse to find the following file C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll, click OK.
Five, re-refresh the Web site folder in IIS. Restart the Web site project, and then browse, it's OK.