When you open an ASP. NET web project, the following error occurs:
Prompt window title: Web Access failed
Note: The default web access mode of this project is file sharing, but the project folder in "..." cannot be opened from the path. The returned error is: The Web project "" cannot be opened. The returned error is: The Web project "..." cannot be opened. The file path "..." contains the URL "..." does not match. The two must be mapped to the same server location. HTTP Error 404: Not found ......
Solution:
Go to "C:/Documents and Settings/your username/vswebcache/computer name/" and delete the folder with the same name as this project.
Analysis:
When you create an ASP.. NET web project,. net will automatically create a folder with the same name as the project in vswebcache (if such a folder already exists,. and create a file (project name) in the folder. csproj. user) and ASP.. Net (a copy is an empty directory that does not contain any files ).
When you open ASP. net web project,. net will read the folder in vswebcache with the same name as this project. If the ing path of the folder in vswebcache is. the preceding error message is displayed when the net web project is different. In this case, the problem can be solved only by deleting the folder with the same name in vswebcache and re-creating vs. net.
TIPS:
1. vswebcache is used to support offline development of ASP. NET web applications. Assume that you have implemented ASP on a Web server. net project development. For some reason, you can only perform offline development on your laptop. In this case, you can use.. net. Open this project on your laptop. In vs. net, select "project" = "Web project" = "offline work ". At this time, vs. NET will copy all project files to vswebcache. In this way, you can open the project file in vswebcache for development offline. When online, select "project" = "Web project" and select "Synchronize all folders" to copy the content developed offline to the server.
2.. net uses FrontPage Server extensionsg to communicate with the Web server,. net cannot directly modify files in the web server, so. net uses vswebcache as a transfer station, puts the edited and compiled files in vswebcache first, and then uploads the files to the server through FrontPage Server extensionsg.
Minor issues:The information in the prompt window popped up by vs. Net cannot be copied through Ctrl + C.