HOW TO: Create a New ASP.NET Web Application on a Remote Web Server (822316)



The information in this article applies to:

  • Microsoft ASP.NET (included with the .NET Framework 1.1)
  • Microsoft ASP.NET (included with the .NET Framework) 1.0

SUMMARY

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

back to the top

Set Up the Remote Web Server

Create a New User Account

To create a new User account, follow these steps:
  1. Click Start, point to Settings, and then click Control Panel.
  2. Double-click Administrative Tools, and then double-click Computer Management.
  3. Expand System Tools, and then expand Local Users and Groups.
  4. Right-click Users, and then click New User.
  5. In User name text box, type user1, and then type the password for the new user in the Password text box.
  6. Click to clear the check box for User must change password at next logon, and then click Create.
back to the top

Add the New User Account to the Administrators Group

To add the user1 account to the Administrators group, follow these steps:
  1. Right-click user1, and then click Properties.
  2. Click Member Of, and then click Add.
  3. In the Enter the object names to select text box, type administrators, and then click OK.
  4. In the Properties dialog box, click OK.
  5. Close Computer Management.
back to the top

Create a Project Folder on the Remote Web Server

To create a project folder on the remote Web server for you Web application project, do the following:
  • In the C:\Inetpub\wwwroot folder, create a new folder named remoteWebApp.
back to the top

Set Sharing Permissions on the Project Folder

To set sharing permissions on your project folder, follow these steps:
  1. Right-click the remoteWebApp folder, and then click Properties.
  2. Click the Sharing tab.
  3. On the Sharing tab, click to select the check box for Share this folder. In the Share name text box, keep remoteWebApp as the share name.
  4. Click Permissions, and then click Add.
  5. In the Enter the object names to select text box, type servername\user1, and then click OK.

    Note For servername, type the name of the remote Web server.
  6. Under Allow, click to select the check box for Full Control to assign full access permissions for the remoteWebApp folder to the user1 account.
  7. Click OK two times.
back to the top

Create a Virtual Directory

To create a virtual directory for your project, follow these steps:
  1. Click Start, point to Settings, and then click Control Panel.
  2. Double-click Administrative Tools, and then double-click Internet Services Manager (on a computer running Microsoft Windows XP, double-click Internet Information Services).
  3. Expand server. In the left pane, right-click Default Web Site, point to New, and then click Virtual Directory.
  4. In the Virtual Directory Creation wizard, click Next to continue.
  5. On the Virtual Directory Alias page, type remoteWebApp for the alias (the name) of the virtual directory, and then click Next.
  6. On the Web Site Content Directory page, click Browse. Locate the content folder that you created to hold the content (C:\Inetpub\wwwroot\remoteWebApp).
  7. Click Next to continue.
  8. On the Access Permissions page, click Next.
  9. Click Finish.
back to the top

Verify Authentication Access

To verify the Authentication and access control settings, follow these steps:
  1. Right-click the remoteWebApp virtual directory, and then click Properties.
  2. Click the Directory Security tab.
  3. Under Authentication and access control, click Edit. Verify that the check box for Enable anonymous access is selected.
back to the top

Set Up the Client Computer

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. Locate My Network Places, and then right-click My Network Places.
  3. Click Map Network Drive.
  4. In the Drive text box, keep the drive name that appears, and then type \\servername\remoteWebApp.

    Note For servername, type the name of the remote Web server.
  5. Click Finish.
  6. In User name text box, type user1, and then type the password for user1 in the Password text box.
  7. Click OK.
back to the top

Create an ASP.NET Web Application on the Remote Web Server

To create a new ASP.NET Web Application project named remoteWebApp by using Microsoft Visual C# .NET or Visual Basic. NET, 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, click Visual C# Projects or Visual Basic. NET under Project Types, and then click ASP.NET Web Application under Templates.
  4. In the Location text box, type http://servername/remoteWebApp.

    Note For servername, type the name of the remote Web server.
  5. Click OK.
back to the top

REFERENCES

For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

318041 HOW TO: Set Up and Use Remote Debugging in Microsoft Visual Studio .NET

320451 PRB: Remote ASP.NET Projects Require IIS on the Client Computer or FrontPage Server Extensions on the Server Computer

326356 HOW TO: Deploy an ASP.NET Web Application Using the Copy Project Feature in Visual Studio .NET

308582 HOW TO: Connect and Disconnect a Network Drive in Windows XP

For more information about how to create Web projects, visit the following Microsoft Web site: back to the top

Modification Type:MajorLast Reviewed:6/16/2003
Keywords:kbUser kbSecurity kbDeployment kbWebServer kbHOWTOmaster KB822316 kbAudDeveloper