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.

FP2000: Cannot Use Search Component With Active Server Pages


View products that this article applies to.

This article was previously published under Q205540

For a Microsoft FrontPage 98 version of this article, see 194284 (http://support.microsoft.com/kb/194284/EN-US/ ) .
For a Microsoft FrontPage 97 version of this article, see 183046 (http://support.microsoft.com/kb/183046/EN-US/ ) .

↑ Back to the top


Symptoms

When you click Search on an Active Server Page (ASP), the results of your search are returned, but the ASP script on your page does not execute. In some cases, the following error message appears in your Web browser:
Cannot run the FrontPage Server Extensions' Smart HTML interpreter on this non-HTML page: "http://<myserver>/<myfile>.asp"
The Uniform Resource Locator (URL) in the Address box in Internet Explorer resembles the following
http://<myserver>/<myfile>.asp/_vti_bin/shtml.dll/<myfile>.asp.
where <myserver> is the location of your Web and <myfile> is the name of the file you are previewing.

↑ Back to the top


Cause

You can not use the Search Form on an Active Server Page.

When an ASP page is requested on a server, Asp.dll parses it. It finds any script specified to run on the server, executes it, and displays the results.

When you conduct a search using the Search Form, Shtml.dll parses the search page and the results of the search are expanded into the search file and displayed in your Web browser.

When a search is performed using the Search Form on an ASP page, Shtml.dll cannot parse the file because Asp.dll is already parsing it. Because Shtml.dll fails, it outputs the message described in the "Symptoms" section.

When using Microsoft Index Server, the Search Form does not use Shtml.dll. Instead, the action for the form points to the .idq file associated with the file.

↑ Back to the top


Resolution

To resolve this behavior, use one of the following methods.

Method 1: Install Microsoft Index Server

Install Microsoft Index Server on the Web server hosting your Web. For more information about obtaining and installing Microsoft Index Server, please see the following Microsoft World Wide Web site: For additional information about using Index Server with FrontPage, please see the following article(s) in the Microsoft Knowledge Base:
194391 How to Integrate FrontPage 98 and Index Server

Method 2: Use .htm or .html Rather Than .asp pages With the Search Form

Do not use Active Server Pages with the Search Form. Use .htm or .html pages only.

↑ Back to the top


Keywords: KB205540, kbprb

↑ Back to the top

Article Info
Article ID : 205540
Revision : 2
Created on : 1/17/2007
Published on : 1/17/2007
Exists online : False
Views : 410