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



The information in this article applies to:

  • SharePoint Team Services from Microsoft
  • Microsoft FrontPage 2002

This article was previously published under Q292659

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%>.

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.

WORKAROUND

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

STATUS

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

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.

Modification Type:MinorLast Reviewed:7/16/2004
Keywords:kbbug kberrmsg kbpending KB292659