BUG: File Contains Insufficient HTML Tags Error in Visual InterDev (229062)



The information in this article applies to:

  • Microsoft Visual InterDev 6.0

This article was previously published under Q229062

SYMPTOMS

When you attempt 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 you customize 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 quotation marks. For example, if you want to include the following comment
<!-- This comment won't work -->
				
change it to this:
<!-- "This comment won't work" -->
				
Likewise, if you have an unbalanced double quotation mark in your comment, you can surround the comment with single quotation marks to avoid the error. For example:
<!-- This has an unbalanced " (double-quote) -->
				
Change the comment as follows:
<!-- 'This has an unbalanced " (double-quote)' -->
				

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are 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.

Modification Type:MajorLast Reviewed:10/16/2002
Keywords:kbBug kbDSupport kbwizard KB229062