When you create a project in VS. NET, the following error occurs: "The two must be mapped to the same server location"

Source: Internet
Author: User
Fault symptom :


When you open an ASP. NET Web project or create a project, the following error occurs:

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.