FIX: You cannot deploy a Web Setup project to Web sites by using host headers or IP addresses in Visual Studio 2003 or in Visual Studio 2002 Service Pack 1 (821335)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Academic Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition SP1
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition SP1
  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Professional Edition SP1
  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2003), Professional Edition

SYMPTOMS

When you create a Web Setup project in Microsoft Visual Studio 2003 or in Microsoft Visual Studio 2002 Service Pack 1, you can only deploy the project to the default Web site. The default Web site is bound to port 80 on the Web server. You cannot redirect the installation by changing the path during installation or by setting the TARGETDIR property in the Microsoft Windows Installer.

You may also recieve the following error message:
The specified path http://ServerName/Path is unavailable. The Internet Information Server might not be running or the path exists and is redirected to another machine. Please check the status of this virtual directory in the Internet Services Manager.

CAUSE

The Web Setup project is not designed to be installed on a Web site that uses the same port as the default Web site but uses different host headers or a different IP address from the default Web site. The Web Setup project must use a port that is different from the port that the default Web site uses.

Note When the project is installed, you can select a different port to deploy the project to a non-default Web site if you use the port to differentiate the sites.

RESOLUTION

To resolve this issue, download the DPCA.msi package from the Microsoft Download Center:DownloadDownload the DPCA.msi package now.
For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to obtain Microsoft support files from online services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.
  1. In the File Download dialog box, click Save, and then select the folder where you want to install the file.
  2. Open the folder that you selected in step 1, double-click DPCA.msi, and then click Run in the Open File dialog box.
  3. Replace the DCPA.dll file in the C:\Program Files\Microsoft Visual Studio .NET <2003>\Common7\Tools\Deployment folder with the DCPA.dll file in the C:\Documents and Settings\UserAccount\My Documents\MSDN\DPCA folder.
You can now create the Web Setup project.

When you create a Web Setup project, an .msi file is created. You must run the EnableHostHeaders.js script file. This script accepts the .msi file as its command-line parameter. The EnableHostHeaders.js script file is typically installed in the following folder:

C:\Documents and Settings\UserAccount\My Documents\MSDN\DPCA

STATUS

This behavior is by design.

Modification Type:MajorLast Reviewed:9/7/2005
Keywords:kbvs2002sp1sweep kbDownload kbpending kbbug kbVSNetPreSP1fix kbVSNET2003preSP1fix kbfix KB821335 kbAudDeveloper kbAudITPRO