Microsoft KB Archive/320265

= HOW TO: Use File Share Mode for a Share Other Than the Default wwwroot$ Share =

Article ID: 320265

Article Last Modified on 6/16/2003

-

APPLIES TO


 * Microsoft ASP.NET 1.0
 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * Microsoft Visual Studio .NET 2002 Academic Edition
 * Microsoft ASP.NET 1.1
 * Microsoft Visual Studio .NET 2003 Academic Edition
 * Microsoft Visual Studio .NET 2003 Enterprise Architect
 * Microsoft Visual Studio .NET 2003 Enterprise Developer
 * Microsoft Visual Studio .NET 2003 Professional Edition

-



This article was previously published under Q320265



IN THIS TASK
SUMMARY
 * Configure the IIS Web Server
 * Create the Project on the Remote Web Server

REFERENCES



SUMMARY
This step-by-step article demonstrates how to create a project on a remote Web server that uses the file share mode with a share other than the default wwwroot$ share by using Microsoft Visual Studio .NET.

back to the top

Configure the IIS Web Server

 * 1) Create a folder (for example, C:\Projects) to contain your Web application or Web applications.
 * 2) Share the folder (for example, sharename = projects).
 * 3) Give the VS Developers group full control of this shared folder. Make sure that the user who will create the ASP.NET Web application belongs to the VS Developers group.
 * 4) Create a subfolder under the folder that you created in step 1 (for example, C:\Projects\App2) for the new Web application.
 * 5) In Internet Services Manager, create a virtual directory (for example, App2) that points to the new application folder (for example, C:\Projects\App2).

NOTE: This virtual directory must point to the same physical folder that you created in step 4. Make sure that the virtual directory and physical folder names are the same.

back to the top

Create the Project on the Remote Web Server
 Start Visual Studio .NET on the client computer. On the File menu, point to New, and then click Project. Click any language under Project Types, and then click ASP.NET Web Application under Templates. In the Location box, type the following path, and then click OK:

http:// /

where appName is the name of the virtual directory that you created in step 4 of the &quot;Configure the IIS Web Server&quot; section (earlier in this article).

Because the virtual directory already exists but points outside the normal wwwroot$ share, you receive the following error message:

The default Web access mode for this project is set to file share, but the project folder at  cannot be opened with the path. The error returned was:

Unable to create Web project ' '. The file path ' ' does not correspond to the URL ' '. The two need to map to the same server location. HTPP Error 404: Object Not Found

 Click Retry using a different file share path, and then type the file share path for the share that you want to use in the following format:

\\ServerName\ShareName\appName

 Click OK.

Your Web application is created on the Microsoft Internet Information Services (IIS) server.</ol>

back to the top

<div class="references_section">