HOW TO: Connect to Existing ASP.NET Web Applications on the Remote Web Server (825790)
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
SUMMARYThis 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
topSet Up the Remote Web ServerCreate a New ASP.NET
Web ApplicationCreate 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:
- Start Visual Studio .NET.
- On the File menu, point to
New, and then click Project.
- 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.
- In the Location box, type
http://localhost/testApp, and then click
OK.
- On the Build menu, click Build
Solution.
- Close Visual Studio .NET.
back to the topSet Sharing Permissions on the Project FolderBy default, project folder testApp is created at %SystemDrive%\Inetpub\wwwroot\. To set sharing permissions on the project folder,
follow these steps:
- In Microsoft Windows Explorer, locate the %SystemDrive%\Inetpub\wwwroot\testApp project folder.
- Right-click the testApp folder, and then
click Properties.
- Click the Sharing tab.
- On the Sharing tab, click to select the
Share this folder option.
- Click Permissions, and then click
Add.
- 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. - 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.
- Click OK two times.
back to the topSet Up the Client ComputerYou 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 OptionMap the Network Drive for the Folder on the Remote Web ServerTo 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.
- Right-click My Network Places, and then
click Map Network Drive.
- In the Drive box, type
\\servername\testApp.
Note For servername, type the
name of the remote Web server. - Click Finish.
- In the User name box, type
testuser, and then type the password for testuser in the
Password box.
- Click OK.
back to the topOpen the Application on the Remote Server - Start Visual Studio .NET.
- On the File menu, point to
Open, and then click Project From Web.
- In the Open Project from Web window, type
http:// RemoteWebServer
in the Location box.
- Type testuser in the User
name box, and then type password in the
Password box.
- In the Open Project dialog box, click
testApp, and then click testApp.csproj or
testApp.vbproj.
back to the topOpen the Remote Application with FrontPage Server Extensions- Start Visual Studio .NET.
- On the Tools menu, click
Options.
- In the Options dialog box, expand
Projects, and then click Web Settings.
- In the Web Server Connection section,
click FrontPage Extensions.
- Click OK.
- On the File menu, point to
Open, and then click Project From Web.
- 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.
- Type testuser in the User
name box, and then type password in the
Password box.
- In the Open Project dialog box, click
testApp, and then click testApp.csproj or
testApp.vbproj.
back to the
topREFERENCES 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
Modification Type: | Minor | Last Reviewed: | 7/8/2005 |
---|
Keywords: | kbUser kbIDEProject kbSecurity kbWebServer kbHOWTOmaster KB825790 kbAudDeveloper |
---|
|