You cannot open ASP.NET Web application project after deployment (830611)
The information in this article applies to:
- Microsoft ASP.NET (included with the .NET Framework) 1.0
- Microsoft ASP.NET (included with the .NET Framework 1.1)
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Academic Edition
- Microsoft Visual Studio .NET (2003), Professional Edition
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
- Microsoft Visual Studio 2005 Professional Edition
- Microsoft Visual Studio 2005 Standard Edition
SYMPTOMSYou create an ASP.NET Web application project, and then
you deploy the project on another computer. When you try to open the deployed
project, you may receive the following error message: The project you are trying to open is a Web project. You need
to open it by specifying its URL path. WORKAROUNDTo work around this problem, use any of the following
methods. For more information about each of these methods, click the method to view the procedure.
Manually copy the project
files to the deployment computer- On the deployment computer, create a folder named
Project1 in the C:\Inetpub\Wwwroot
folder.
- On the deployment computer, create a virtual directory
named Project1, and then map this virtual directory to
the C:\Inetpub\Wwwroot\Project1 folder.
- Copy all the project files from the
devserver computer to the
C:\Inetpub\Wwwroot\Project1 folder that you created on the deployment
computer.
Note devserver is a placeholder for the
name of the development (or source) server. back to the topDeploy the project by using the same virtual directory nameWhen you deploy the project by using Microsoft Windows
Installer, change the name of the virtual directory of the project to be the same
as the name of the virtual directory of the original project (Project1). By
default, the virtual directory name that the Setup wizard provides is the name of
the Web Setup project (WebSetupProject1). For more information, see step 5 of
the " Run your Web Setup project on a remote (deployment) computer" section of
this article. back to the topRename the Webinfo file and the project filesAfter you deploy the project by using a Web Setup project,
rename the Webinfo file and the project files to map to the virtual directory
of the project. To do this, follow these steps:
- In Microsoft Windows Explorer, locate to the
C:\Inetpub\wwwroot\WebSetupProject1 folder.
- Rename the following file, depending on your project:
- If you are using Microsoft Visual C# .NET or Microsoft Visual C# 2005, rename the
Project1.csproj.webinfo file to WebSetupProject1.csproj.webinfo.
- If you are
using Microsoft Visual Basic .NET or Microsoft Visual Basic 2005, rename the Project1.vbproj.webinfo file to
WebSetupProject1.vbproj.webinfo.
- Rename the following file, depending on your project:
- If you are using Visual C# .NET or Visual C# 2005, rename the Project1.csproj
file to WebSetupProject1.csproj.
- If you are using Visual Basic .NET or Visual Basic 2005, rename the
Project1.vbproj file to WebSetupProject1.vbproj.
back to the topSTATUS This
behavior is by design.REFERENCES
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
326495
How to move your Visual Studio .NET Web project to another computer
822316 How to create a new ASP.NET Web application on a remote Web server
827028 PRB: Error message when you try to run a Web Setup project that was created by using Visual Studio .NET
For more information, visit the following
Microsoft Developer Network (MSDN) Web sites:
Modification Type: | Major | Last Reviewed: | 3/3/2006 |
---|
Keywords: | kbvs2005swept kbvs2005applies kbPDWizard kbIDEProject kbsetup kbDeployment kbAppSetup kberrmsg kbprb KB830611 kbAudDeveloper |
---|
|