To 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 name
When 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 files
After 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 top