Microsoft KB Archive/825790

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

Article ID: 825790

Article Last Modified on 7/8/2005

-

APPLIES TO


 * Microsoft ASP.NET 1.1
 * Microsoft ASP.NET 1.0

-



IN THIS TASK

 * SUMMARY
 * Set Up the Remote Web Server
 * Create a New ASP.NET Web Application
 * Set Sharing Permissions on the Project Folder
 * Set Up the Client Computer
 * Open the Remote Application with the File Share Path Option
 * Map the Network Drive for the Folder on the Remote Web Server
 * Open the Application on the Remote Server
 * Open the Remote Application with FrontPage Server Extensions
 * REFERENCES



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.

back to the top

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.

back to the top

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  \testuser, and then click OK.

Note is the user account on the server with Administrative credentials. For, type the name of the Web server.
 * 1) To assign full access permissions for the testApp folder to the   account, click to select the Full Control check box in the Allow section.
 * 2) Click OK two times.

back to the top

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

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 \\ \testApp.

Note For, type the name of the remote Web server.
 * 1) Click Finish.
 * 2) In the User name box, type testuser, and then type the password for testuser in the Password box.
 * 3) Click OK.

back to the top

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://   in the Location box.
 * 4) Type testuser in the User name box, and then type  in the Password box.
 * 5) In the Open Project dialog box, click testApp, and then click testApp.csproj or testApp.vbproj.

back to the top

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://  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  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

