Vs. Net experience and skills

Source: Internet
Author: User

Fault symptom 1:

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.

~ -~ You can use QQ tools. Haha!

References:
Http://www.ftponline.com/vsm/2003_01/online/hottips/kiely/default.aspx

Fault 2

Project cannot be opened

I copied a project from my friend, put it under the main directory set by default web site in IIS, and then enter the virtual path set by IIS to point to it, and then in.. Net open the project, but an error is reported, the file path does not match: http: 404, I have read the system disk vswebcache under my IIS name folder should have automatically generated a folder with the same name, not generated, why?
Solution

Method 1: The virtual directory name you set must be the same as the original virtual directory name of the project, or. csproj. in the webinfo file, change the urlpath value to the virtual directory name you are currently using.

Method 2: Check whether the virtual directory and its direction exist in the settings in IIS. Open the. sln file in notepad, write the virtual directory behind localhost, save it, and then open it with. If the problem persists, name web. config _ web. config and use vs to open the project.

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.