BUG: File Contains Insufficient HTML Tags Error in Visual InterDev

ID: Q229062


The information in this article applies to:


SYMPTOMS

When attempting to apply a layout to a file or project in Visual InterDev 6.0, the following error may occur:

The file contains insufficient HTML tags or incomplete layout information. Themes and layouts cannot be applied.


CAUSE

When customizing an existing Layout.htm template page for a layout or creating a new custom layout, you cannot have unbalanced single or double quotes inside an HTML comment.


RESOLUTION

Enclose any HTML comments in the Layout.htm file of the layout in quotes. For instance, if the following is the comment


<!-- This comment won't work --> 
Change it to this

<!-- "This comment won't work" --> 
Likewise, if you have an unbalanced double quote in your comment, you can surround the comment with single quotes to avoid the error as in the following example:

<!-- This has an unbalanced " (double-quote) --> 
Change it to look like this:

<!-- 'This has an unbalanced " (double-quote)' --> 


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 named Default.asp.


  3. Apply a layout by right-clicking and selecting Apply Theme and Layout. On the Layout tab, select Apply Layout and Theme. Choose a theme and click OK.


  4. Open the Layout.htm file under the _Layouts folder (it will be in a subfolder of the _Layouts folder).


  5. Switch to Source View.


  6. Add the following line anywhere on the page:
    
    <!-- ' --> 


  7. Save Layout.htm.


  8. Apply the same layout again by right-clicking and selecting Apply Theme and Layout. On the Layout tab, select Apply Layout and Theme. Pick the same theme as before and click OK.


A dialog box with the error message listed above will appear.

Additional query words:


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

Last Reviewed: May 21, 1999