Zoom Search Engine FAQ - Troubleshooting ASP.NET

Q. Parse Error Message: The format of the 'ZoomASPX' is invalid
Q. "Could not load file or assembly 'ZoomASPX' or one of its dependencies. An attempt was made to load a program with an incorrect format."

Check if you have the correct version of ASP.NET configured for use with the Zoom ASP.NET application in IIS.

The ASP.NET Server Control requires ASP.NET Version 2.0 or later.

To check this, open up the IIS manager and right click on the folder for the ASP.NET application and select "Properties". Click on the "ASP.NET" tab and you will find a drop-down labelled "ASP.NET Version". Select a version that is 2.0 or later. If you do not have the required version listed here, you will need to download and install this from the Microsoft website.

Notes regarding 32-bit and 64-bit: If you are using a 32-bit server, make sure to use the 32-bit server control. If you are using a 64-bit server, make sure to use the 64-bit server control. Download links are here. You may be able to use the 32-bit server control on a 64-bit server with the Application Pool setting "Enable 32-bit applications" set to True. But make sure this is set to False, if you are using the 64-bit server control on a 64-bit server.

Note that you can use index files from either the 32-bit or 64-bit versions of the Indexer with either 32-bit or 64-bit versions of the Server Control.

If you have verified the above and you still see this error, it is likely that you have not applied the installation properties ("Convert to Application", etc.) as described in Chapter 3.2, "Installing the ASP.NET native control" of the Users Guide which can also be found in the Help file.

Q. "Could not load file or assembly..." error regarding a third-party ASP.NET application not related to Zoom
Q. Configuration error message pointing to a "web.config" source file

This is most likely because you have several ASP.NET applications running on the same website (within different sub folders or virtual directories) and Settings inheritance is causing conflict. You can read more about ASP.NET configuration hierarchy and inheritance in this MSDN article here.

To disable "web.config" inheritance, you need to modify the inheritInChildApplications attribute. This can be achieved by adding (if it does not exists already) the <location> tag around the main <system.web> section of the "web.config" file.

<location path="." inheritInChildApplications="false">
<system.web>
...
</system.web>
</location>

To individually limit/restrict certain settings, you can use the <remove> or <clear> tag for the problemmatic modules or handlers specifically. See the above linked MSDN article for more information.

Q. How do I create a search form on ASPX pages?

If you wish to add search boxes to an ASPX page, you can do so by inserting the following HTML:

<input type="text" name="zoom_query" size="20"><br><br>
<input type="button" value="Search" onClick="window.location='http://www.mysite.com/search.aspx?zoom_query=' + this.form.zoom_query.value" >

You will need to replace the URL in the above HTML (in green) with the actual URL to your search page that you created earlier. Make sure to retain the "?zoom_query=" part at the end.

Note that this method is different to the one described for non-ASPX pages here because ASPX pages usually have an all encompassing <form runat="server"> tag, and it is not possible to have another <form> tag within the main form.

Note also that the HTML provided in the above section does not accept the Enter key on your keyboard. This is to avoid disturbing any other form elements on your page which might require/expect the Enter key. However, if you wish to make it so that the Enter key will submit the query in the search box, then you should replace this line in the abovementioned HTML:

<input type="text" name="zoom_query" size="20">

With the following:

<input type="text" name="zoom_query" size="20" onKeyPress="if (event.keyCode==13) { window.location='http://www.mysite.com/search.aspx?zoom_query=' + this.form.zoom_query.value; return false; }">

Again, make sure to replace the text in green with the URL to your search page.

If you are placing this form on your "search.aspx" page, you may want to disable the form that is generated by Zoom so you don't have two forms on the same page. You can do this via the Indexer, "Configure"->"Search Page"->"Search form" and change the dropdown from "Advanced" to "Do not generate". You will need to re-index for this change to take effect. Remember to save your configuration.

Return to the Zoom Search Engine Support page