Article ID: 555436 - Last Review: August 21, 2005 - Revision: 1.0

How to make Visual Studio .NET create web projects in a user defined folder

Author: Rakesh Rajan MVP
Expand all | Collapse all

SUMMARY

This article describes how to make Visual Studio .NET create web projects in a folder other than the default inetpub\wwwroot.

You want to create a web project using Visual Studio .NET in a folder other than the default inetpub\wwwroot

When you create a web project using Visual Studio .NET, the web project is created within a folder inside inetpub\wwwroot by default. Visual Studio .NET does not provide any built-in functionality to change this behavior so that web projects may be created in a different folder. This article shows how to workaround this problem so as to make Visual Studio .NET create web projects within any folder you choose.
Q
How to make Visual Studio .NET create web projects in a folder other then inetpub\wwwroot
 
A
Before creating your web project in Visual Studio .NET, perform these steps:
1. Create a new folder where you want your web project files to reside.
2. Convert the folder into a virtual directory using IIS.
3. If the folder is within an NTFS partition, grant the <machine name>\ASPNET user Read & Execute, List Folder Contents and Read (the default access privileges) to this folder.
 
Open Visual Studio .NET and perform these steps:
1. Create a new web project.
2. In the Location text box in the New Project dialog box, provide the virtual directory name of folder you created.
 
Visual Studio .NET will proceed creating the web project in the specified folder.


APPLIES TO
  • Microsoft Visual Studio .NET 2003 Professional Edition
  • Microsoft Visual Studio .NET 2002 Academic Edition
  • Microsoft Visual Studio .NET 2002 Professional Edition
  • Microsoft Visual Studio .NET 2003 Enterprise Architect
  • Microsoft Visual Studio .NET 2003 Enterprise Developer
  • Microsoft Visual Studio .NET 2002 Enterprise Developer
Community Solutions ContentCOMMUNITY SOLUTIONS CONTENT DISCLAIMER
MICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES.
 

Article Translations