Unable to create a web project on Windows Server 2003

xiaoxiao2021-03-06  96

Today, my colleagues asked me a question, saying that I can't use a web project on the WINDOW2003 at home to always display "http error 404: not found" error; The Default Web Access Mode for this Project Is Set to File Share, But The Project Folder AT 'Project URL' Cannot Be Opened with The Path 'Physical Project Path'.The Error Returned WAS:

Unable to create Web project 'Project Name'.The file path' Physical project path 'does not correspond to the URL' Project URL'.The two need to map to the same location.HTTP Error 404: Not Found Internet search a bit in the afternoon It turned out to be this: This problem appears to use the VS2002 development tool, when establishing a web project on the Window Server 2003 machine, because VS2002 is built when establishing a web project, to detect the URL and UNC addresses of the web project, to write one on the server The suffix is ​​a .tmp file, then request this file from the server from the server via HTTP request, but Window Server 2003 blocks any web request, suffix .tmp file default, suffix .tmp file by default because of safe consideration It is definitely not declared, and the VS2002 has not been discounted to that file, so it is wrong, and the file is displayed. This problem does not exist in VS2003 because the VS2003 is written to the server is the .htm file, so there is no such problem. It is also recommended to use the VS2003, and the problem with VS2002 is still much. Good horse is equipped with saddle! ! Workaround: 1. Install the VS2003, Microsoft recommended method, more secure; 2, less secure method: 1) Start Internet Information Services MMC. 2) Right-click on the Web site and click Properties. 3) Click the HTTP Title tab, and then click MIME Type. 4) Click New to add a new MIME type. 5) In the Extended Text box, type .tmp. 6) In the MIME Type text box, type text / place. 3, install Microsoft .NET Framework 1.0 Service Pack 3

Microsoft's description of this issue: BUG: Unable to create a web project on Windows Server 2003 using Visual Studio .NET with IIS 6.0 to create an ASP.NET web application "Web Access Failed"

转载请注明原文地址:https://www.9cbs.com/read-96331.html

New Post(0)