Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

STS: Error Message When You Use Search Component: An <%if ...%> Was Found Without a Matching <%else%> or <%endif%>


View products that this article applies to.

This article was previously published under Q292659

↑ Back to the top


Symptoms

When you type text into a Search box in a Microsoft FrontPage Web and then click Start Search, you may receive a message similar to the following:
An <%if ...%> was found without a matching <%else%> or <%endif%>.

↑ Back to the top


Cause

This behavior occurs if the following conditions are true:
  • You have a SharePoint team Web site installed on a server that is using Indexing Service.

    -and-
  • A Database Results region and a Web Search component are both displayed on the same Web page.

↑ Back to the top


Workaround

To work around this issue, do not insert a Database Results region and a Web Search component in the same Web page.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


More information

The Web Search component uses the Indexing Service, which has Active Server Pages-like syntax, and the Database Results region uses Active Server Pages (ASP) to link to the database. Therefore, a conflict results when both of these components are inserted into the same Web page.

↑ Back to the top


Keywords: KB292659, kbpending, kberrmsg, kbbug

↑ Back to the top

Article Info
Article ID : 292659
Revision : 5
Created on : 1/31/2007
Published on : 1/31/2007
Exists online : False
Views : 296