Change location for ASP. NET Program

Source: Internet
Author: User
Create ASP. NET in Visual Studio. NET ProgramThe default location is http: // localhost/[webapplicationname]. The newly created ASP. Net program creates a folder with the same name as the program name in C: \ Inetpub \ wwwroot \ of drive C. Add and modify new files in this folder. However, I don't want ASP.. Net program is stored on the C drive for two reasons: 1. Generally, the C drive is the system disk. I want to keep the system disk clean as much as possible, instead of creating or deleting files on the system disk to avoid system fragmentation. 2, my other programs, such as winform programs, are stored on a disk D or an edisk for unified management. I don't want ASP.. Net program. What should I do? The answer is, of course, cutting ASP. NET programs to other locations and saving them.

1. Cut the ASP. NET program to a new location

2. Open IIS, create a virtual directory, and specify the path to the new location of ASP. NET program.

3. open ASP. and open [webapplicationname]. [vbproj]. webinfo or [webapplicationname]. [csproj]. in the webinfo file, modify the URL path attribute of the Web node to http: // localhost/[virtual directory name]/[webapplicationname]. vbproj or http: // localhost/[virtual directory name]/[webapplicationname]. csproj.

OK! Success. Open vs. NET and try everything works.

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.