Microsoft KB Archive/822316

= HOW TO: Create a New ASP.NET Web Application on a Remote Web Server =

Article ID: 822316

Article Last Modified on 5/12/2007

-

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 User Account
 * Add the New User Account to the Administrators Group
 * Create a Project Folder on the Remote Web Server
 * Set Sharing Permissions on the Project Folder
 * Create a Virtual Directory
 * Verify Authentication Access
 * Set Up the Client Computer
 * Map the Network Drive for the Folder on the Remote Web Server
 * Create an ASP.NET Web Application on the Remote Web Server
 * REFERENCES



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

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

Note For, type the name of the remote Web server.
 * 1) Under Allow, click to select the check box for Full Control to assign full access permissions for the remoteWebApp folder to the user1 account.
 * 2) 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  . 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

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

Note For, type the name of the remote Web server.
 * 1) Click Finish.
 * 2) In User name text box, type user1, and then type the password for user1 in the Password text box.
 * 3) 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:// /remoteWebApp.

Note For, type the name of the remote Web server.
 * 1) Click OK.

back to the top

