HOW TO: Use File Share Mode for a Share Other Than the Default wwwroot$ Share (320265)
The information in this article applies to:
- Microsoft ASP.NET (included with the .NET Framework) 1.0
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Academic Edition
- Microsoft ASP.NET (included with the .NET Framework 1.1)
- Microsoft Visual Studio .NET (2003), Academic Edition
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Professional Edition
This article was previously published under Q320265 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 topConfigure the IIS Web Server- Create a folder (for example, C:\Projects) to contain your
Web application or Web applications.
- Share the folder (for example, sharename =
projects).
- 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.
- Create a subfolder under the folder that you created in
step 1 (for example, C:\Projects\App2) for the new Web application.
- 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 topCreate 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://servername/appName where appName is the name of the virtual directory that you created in step 4 of the
"Configure the
IIS Web Server" 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 http://lcdbg/app2 cannot be opened with the path
\\lcdbg\wwwroot$\app2. The error returned
was:
Unable to create Web project 'app2'.
The file path '\\lcdbg\wwwroot$\app2' does not
correspond to the URL 'http://lcdbg/app2'. 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. back to the topREFERENCESFor additional information about
how to configure a remote Web server, click the article number below to view
the article in the Microsoft Knowledge Base: 312779 INFO: Visual Studio .NET Readme (Part 1)
For additional information, click the
following article numbers to view the articles in the Microsoft Knowledge Base:
317955
BUG: "Failed to Start Monitoring Directory Changes" Error Message When You Browse to an ASP.NET Page
320117 FIX: "Value Cannot Be Null. Parameter Name: path2" Error Message When You Browse to ASP.NET Pages
back to the top
Modification Type: | Major | Last Reviewed: | 6/16/2003 |
---|
Keywords: | kbHOWTOmaster kbIDEProject KB320265 kbAudDeveloper |
---|
|