Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

HOW TO: Connect to Existing ASP.NET Web Applications on the Remote Web Server


View products that this article applies to.

Summary

This step-by-step article describes how to connect a new Microsoft ASP.NET Web application to a remote Web server by using Microsoft Visual Studio .NET.

Set Up the Remote Web Server

Create a New ASP.NET Web Application

Create a new ASP.NET Web Application project that is named testApp by using Microsoft Visual C# .NET or Microsoft Visual Basic .NET. To do this, follow these steps on the client computer:
  1. Start Visual Studio .NET.
  2. On the File menu, point to New, and then click Project.
  3. In the New Project dialog box, select Visual C# Projects or Visual Basic Projects under Project Types, and then select ASP.NET Web Application under Templates.
  4. In the Location box, type http://localhost/testApp, and then click OK.
  5. On the Build menu, click Build Solution.
  6. Close Visual Studio .NET.

Set Sharing Permissions on the Project Folder

By default, project folder testApp is created at %SystemDrive%\Inetpub\wwwroot\.

To set sharing permissions on the project folder, follow these steps:
  1. In Microsoft Windows Explorer, locate the %SystemDrive%\Inetpub\wwwroot\testApp project folder.
  2. Right-click the testApp folder, and then click Properties.
  3. Click the Sharing tab.
  4. On the Sharing tab, click to select the Share this folder option.
  5. Click Permissions, and then click Add.
  6. In the Enter the object names to select box, type servername\testuser, and then click OK.

    Notetestuser is the user account on the server with Administrative credentials. For servername, type the name of the Web server.
  7. To assign full access permissions for the testApp folder to the testuser account, click to select the Full Control check box in the Allow section.
  8. Click OK two times.

Set Up the Client Computer

You can open the existing ASP.NET Web application with one of the following options.
  • File Share Path
  • FrontPage Server Extensions

Open the Remote Application with the File Share Path Option

Map the Network Drive for the Folder on the Remote Web Server

To map the network drive for the folder that is located on the remote Web server, follow these steps on the client computer:
  1. Right-click Start, and then click Explorer.
  2. Right-click My Network Places, and then click Map Network Drive.
  3. In the Drive box, type \\servername\testApp.

    Note For servername, type the name of the remote Web server.
  4. Click Finish.
  5. In the User name box, type testuser, and then type the password for testuser in the Password box.
  6. Click OK.

Open the Application on the Remote Server

  1. Start Visual Studio .NET.
  2. On the File menu, point to Open, and then click Project From Web.
  3. In the Open Project from Web window, type http://RemoteWebServer in the Location box.
  4. Type testuser in the User name box, and then type password in the Password box.
  5. In the Open Project dialog box, click testApp, and then click testApp.csproj or testApp.vbproj.

Open the Remote Application with FrontPage Server Extensions

  1. Start Visual Studio .NET.
  2. On the Tools menu, click Options.
  3. In the Options dialog box, expand Projects, and then click Web Settings.
  4. In the Web Server Connection section, click FrontPage Extensions.
  5. Click OK.
  6. On the File menu, point to Open, and then click Project From Web.
  7. In the Open Project from Web dialog box, type http://RemoteWebServer in the Enter the URL of the server that you want to open the project from box.
  8. Type testuser in the User name box, and then type password in the Password box.
  9. In the Open Project dialog box, click testApp, and then click testApp.csproj or testApp.vbproj.

↑ Back to the top


References

For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
822316 HOW TO: Create a New ASP.NET Web Application on a Remote Web Server
326495 HOW TO: Move Your Visual Studio .NET Web Project to Another Computer
308582 HOW TO: Connect and Disconnect a Network Drive in Windows XP

↑ Back to the top


Keywords: KB825790, kbhowtomaster, kbwebserver, kbsecurity, kbideproject, kbuser

↑ Back to the top

Article Info
Article ID : 825790
Revision : 6
Created on : 7/8/2005
Published on : 7/8/2005
Exists online : False
Views : 366