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.
Set Up the Remote Web Server
Create a New User Account
To create a new User account, follow these steps:
- Click Start, point to
Settings, and then click Control Panel.
- Double-click Administrative Tools, and
then double-click Computer Management.
- Expand System Tools, and then expand
Local Users and Groups.
- Right-click Users, and then click
New User.
- In User name text box, type
user1, and then type the password for the new user in
the Password text box.
- Click to clear the check box for User must change
password at next logon, and then click
Create.
Add the New User Account to
the Administrators Group
To add the user1 account to the Administrators group, follow these
steps:
- Right-click user1, and then click
Properties.
- Click Member Of, and then click
Add.
- In the Enter the object names to select
text box, type administrators, and then click
OK.
- In the Properties dialog box, click
OK.
- Close Computer Management.
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.
Set Sharing
Permissions on the Project Folder
To set sharing permissions on your project folder, follow these
steps:
- Right-click the remoteWebApp folder, and
then click Properties.
- Click the Sharing tab.
- 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.
- Click Permissions, and then click
Add.
- 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. - Under Allow, click to select the check box
for Full Control to assign full access permissions for the
remoteWebApp folder to the user1 account.
- Click OK two times.
Create a Virtual Directory
To create a virtual directory for your project, follow these
steps:
- Click Start, point to
Settings, and then click Control
Panel.
- Double-click Administrative Tools, and
then double-click Internet Services Manager (on a computer
running Microsoft Windows XP, double-click Internet Information
Services).
- Expand server.
In the left pane, right-click Default Web Site, point to
New, and then click Virtual
Directory.
- In the Virtual Directory Creation wizard,
click Next to continue.
- On the Virtual Directory Alias page, type
remoteWebApp for the alias (the name) of the virtual
directory, and then click Next.
- On the Web Site Content Directory
page, click Browse. Locate the content folder that you
created to hold the content (C:\Inetpub\wwwroot\remoteWebApp).
- Click Next to continue.
- On the Access Permissions page, click
Next.
- Click Finish.
Verify Authentication Access
To verify the
Authentication and access control
settings, follow these steps:
- Right-click the remoteWebApp virtual
directory, and then click Properties.
- Click the Directory Security
tab.
- Under Authentication and access control,
click Edit. Verify that the check box for Enable
anonymous access is selected.
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:
- Right-click Start, and then click
Explorer.
- Locate My Network Places, and then
right-click My Network Places.
- Click Map Network Drive.
- 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. - Click Finish.
- In User name text box, type
user1, and then type the password for user1 in the
Password text box.
- Click OK.
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:
- Start Visual Studio .NET.
- On the File menu, point to
New, and then click Project.
- 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.
- In the Location text box, type
http://servername/remoteWebApp.
Note For servername, type the
name of the remote Web server. - Click OK.