Home Search Member List Faq Register Login  
UltimateSearch
Server Error with Suggest Box

Thread Starter: ahenriksen   Started: 06-12-2008 9:00 PM   Replies: 16
 Karamasoft Support Forums » General Discussions » UltimateSearch » Server Error with Suggest Box
 Printable Version    « Previous Thread   Next Thread »
  12 Jun 2008, 9:00 PM
ahenriksen is not online. Last active: 6/17/2008 6:06:51 PM ahenriksen

Top 10 Posts
Joined on 06-13-2008
Posts 9
Server Error with Suggest Box
Hi, I am looking to purchase your product but am experiencing a server error when trying to use the suggest box feature. As soon as you start typing in the search field the suggest box pops up with the server error. Here's a link to a screenshot of the problem...

http://www.adam11.com/screenshot.jpg

And here's what my VB code looks like...


<cc1:UltimateSearchInput ID="UltimateSearchInput1" runat="server" DisplaySuggest="True">

<SearchTypeList ID="UltimateSearchTypeList1">

<Items>

<asp:ListItem Selected="True" Value="0">All Words</asp:ListItem>

<asp:ListItem Value="1">Any Word</asp:ListItem>

<asp:ListItem Value="2">Exact Phrase</asp:ListItem>

<asp:ListItem Value="3">Partial Match</asp:ListItem>

</Items>

</SearchTypeList>

<SearchButton ButtonType="Button" Text="Search" CausesValidation="True" ImageUrl=""

ImageAlign="AbsMiddle"></SearchButton>

</cc1:UltimateSearchInput>

<cc1:UltimateSearchOutput ID="UltimateSearchOutput1" runat="server">

</cc1:UltimateSearchOutput>
 



I'm running this from a Windows Vista Box and Visual Studio 2008.


  
  12 Jun 2008, 10:45 PM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: Server Error with Suggest Box
It looks like you haven't indexed properly. When you make a search it probably doesn't return any results. Please open UltimateSearch.admin.aspx in IE, and click the Display Search Results button to see the indexed pages. If everything looks fine and search works properly, then you need to show us your while aspx and code behind files.
  
  13 Jun 2008, 1:21 PM
ahenriksen is not online. Last active: 6/17/2008 6:06:51 PM ahenriksen

Top 10 Posts
Joined on 06-13-2008
Posts 9
Re: Server Error with Suggest Box
I have 217 pages that have been indexed and when I do a search I get plenty of results. Its just the suggest box that doesn't work.

I found the issue but I'm not sure how to fix it. Here is the stack trace...

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Using themed css files requires a header control on the page. (e.g. <head runat="server">Wink.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

InvalidOperationException: Using themed css files requires a header control on the page. (e.g. <head runat="server">Wink.
System.Web.UI.PageTheme.SetStyleSheet() +1998526  
System.Web.UI.Page.OnInit(EventArgs e) +2062574
Karamasoft.WebControls.UltimateSearch.Suggest.OnInit(EventArgs e) +51  
System.Web.UI.Control.InitRecursive(Control namingContainer) +321  
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint

  
  13 Jun 2008, 1:29 PM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: Server Error with Suggest Box
Please open UltimateSearchInclude\UltimateSearch.suggest.aspx in Notepad, and append the following to the end of that file.

<html>
<head id="Head1" runat="server">
</head>
</html>

  
  13 Jun 2008, 1:32 PM
ahenriksen is not online. Last active: 6/17/2008 6:06:51 PM ahenriksen

Top 10 Posts
Joined on 06-13-2008
Posts 9
Re: Server Error with Suggest Box

Almost have it. I changed UltimateSearch.suggest.aspx to:


<%@ Page language="c#" AutoEventWireup="false" EnableTheming="false" Inherits="Karamasoft.WebControls.UltimateSearch.Suggest" %>

<head runat="server" id="Header" />
 



and it works except that the last line in the suggest box looks like this...

http://www.adam11.com/screenshot2.jpg


  
  13 Jun 2008, 1:40 PM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: Server Error with Suggest Box
What if you do this?

<%@ Page language="c#" AutoEventWireup="false" EnableTheming="false" Inherits="Karamasoft.WebControls.UltimateSearch.Suggest" %>

<head runat="server">

Note that we're asking you to try these because we can't reproduce the problem in our test environment.


  
  13 Jun 2008, 1:42 PM
ahenriksen is not online. Last active: 6/17/2008 6:06:51 PM ahenriksen

Top 10 Posts
Joined on 06-13-2008
Posts 9
Re: Server Error with Suggest Box
Same result.
  
  14 Jun 2008, 12:35 PM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: Server Error with Suggest Box
We will look into this issue, and will let you know as soon as we come up with a resolution.
  
  16 Jun 2008, 6:53 PM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: Server Error with Suggest Box
We cannot reproduce this issue in our test environment. Is there a way we can see your test page live? Does this issue happen every time for the last suggestion in the suggestion box or only for the word you type starting with 'di'?
  
  17 Jun 2008, 3:11 PM
ahenriksen is not online. Last active: 6/17/2008 6:06:51 PM ahenriksen

Top 10 Posts
Joined on 06-13-2008
Posts 9
Re: Server Error with Suggest Box
I've posted it live to our production server temporarily so you can access it. Here's the link... REMOVED
  
  17 Jun 2008, 3:18 PM
ahenriksen is not online. Last active: 6/17/2008 6:06:51 PM ahenriksen

Top 10 Posts
Joined on 06-13-2008
Posts 9
Re: Server Error with Suggest Box
One other small request/question... can the module be configured to parse %20 in encoded URL's? For example, this search REMOVED LINK returns titles with %20 instead of spaces.
  
  17 Jun 2008, 3:35 PM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: Server Error with Suggest Box
We will look into this.
  
  17 Jun 2008, 3:37 PM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: Server Error with Suggest Box
We may decode the title to display spaces, but the url in green should stay encoded in case someone wants to copy/paste that link.
  
  17 Jun 2008, 4:18 PM
ahenriksen is not online. Last active: 6/17/2008 6:06:51 PM ahenriksen

Top 10 Posts
Joined on 06-13-2008
Posts 9
Re: Server Error with Suggest Box
Thanks. I agree that the URL should stay encoded.
  
  17 Jun 2008, 5:10 PM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: Server Error with Suggest Box
We looked at your website with the help of an HTTP debugging tool and it seems that the UltimateSearch.suggest.aspx page returns the head section of the document, which it normally shouldn't Please update the content of your UltimateSearch.suggest.aspx page as follows:

<%@ Page language="c#" AutoEventWireup="false" Inherits="Karamasoft.WebControls.UltimateSearch.Suggest" Theme="" %>

Basically, you need to remove the HEAD section from the document and the only difference with the above and the original code is that the additional Theme attribute set to "".

  
 Page 1 of 2 (17 items) 1 2 »
Karamasoft Support Forums » General Discussions » UltimateSearch » Server Error with Suggest Box

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2010 Karamasoft LLC. All rights reserved.