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.