BUG: Default.asp Renamed Default.htm When Deployed With Copy Web

ID: Q198434


The information in this article applies to:


SYMPTOMS

When Deploying a Web project that contains a Default.asp page using the Copy Web Application option from the Project menu's Web Project option, Default.asp will be renamed to Default.htm in the deployment target.

As a consequence of renaming the Default.asp to Default.htm, any HTML in the files copied that refers to Default.asp will be changed to refer to Default.htm.


RESOLUTION

Given that none of the pages in your project refer to Default.asp, you can rename Default.htm to Default.asp after using the Copy Web command.

If other pages refer to the Default.asp, each one of the references will be changed by the link repairer to refer to Default.htm instead of Default.asp.

One solution for this is to not have Default.asp as your default document, and do not have a page in your project named Default.asp if you plan to use Copy Web to deploy it.

Another option is to have your project contain a Default.htm as your default page, and have it load the prefered Default asp using a meta tag, for example:


<META HTTP-EQUIV="REFRESH" CONTENT="0; URL=yourstartpage.asp"> 


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a new project in Visual InterDev 6.0.


  2. Add an Active Server Pages (ASP) page to the project, and name it Default.asp.


  3. From the Project menu, select Web Project. From within Web Project, select Copy Web Application.


  4. For Destination Web Server, select your current Web server, and for Web Project, put in the name of a new virtual directory.


  5. Since this is the first attempt at Copy Web to a new directory, clear Copy Changed Files Only, and Add To Existing Web Project.


Additional query words:


Keywords          : kbVisID600bug kbGrpASP 
Version           : WINDOWS:6.0
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: March 15, 1999