Devin
2006-01-14 19:36:02 UTC
Using the CS2002StarterSite
The search worked when we initially deployed and began developement. Since
then, it seems something has changed and the search errors on the actual
SearchContext.Current.SearchProvider.Search() method with the following error
(I commented out the try block to expose the error):
Specified cast is not valid.
SearchResults.aspx
Stack:
[InvalidCastException: Specified cast is not valid.]
Microsoft.Solutions.Framework.CommerceSearchProvider.Search() +1029
[FrameworkException: The following exception occurred in the Commerce Server
search provider:Specified cast is not valid.]
Microsoft.Solutions.Framework.CommerceSearchProvider.Search() +1500
Microsoft.Solutions.Applications.SearchResults.DoSearch() in
\\alpharetta-dev\wwwroot\cs2002startersite\searchresults.aspx.cs:617
Microsoft.Solutions.Applications.SearchResults.OnSearch(Object sender,
EventArgs e) in
\\alpharetta-dev\wwwroot\cs2002startersite\searchresults.aspx.cs:788
Microsoft.Solutions.Applications.SearchControl.OnSearchClick(Object o,
CommandEventArgs e) in
\\alpharetta-dev\wwwroot\cs2002startersite\usercontrols\searchcontrol.ascx.cs:210
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +116
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1262
Without access to that code, I can't figure out why its failing. Comparing
to the original code, teh only thing I can figure out that has changed is
that now we are searching a single catalog rather than "All catalogs".
Does anyone have any ideas what could be causing the search to fail?
The search worked when we initially deployed and began developement. Since
then, it seems something has changed and the search errors on the actual
SearchContext.Current.SearchProvider.Search() method with the following error
(I commented out the try block to expose the error):
Specified cast is not valid.
SearchResults.aspx
Stack:
[InvalidCastException: Specified cast is not valid.]
Microsoft.Solutions.Framework.CommerceSearchProvider.Search() +1029
[FrameworkException: The following exception occurred in the Commerce Server
search provider:Specified cast is not valid.]
Microsoft.Solutions.Framework.CommerceSearchProvider.Search() +1500
Microsoft.Solutions.Applications.SearchResults.DoSearch() in
\\alpharetta-dev\wwwroot\cs2002startersite\searchresults.aspx.cs:617
Microsoft.Solutions.Applications.SearchResults.OnSearch(Object sender,
EventArgs e) in
\\alpharetta-dev\wwwroot\cs2002startersite\searchresults.aspx.cs:788
Microsoft.Solutions.Applications.SearchControl.OnSearchClick(Object o,
CommandEventArgs e) in
\\alpharetta-dev\wwwroot\cs2002startersite\usercontrols\searchcontrol.ascx.cs:210
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +116
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1262
Without access to that code, I can't figure out why its failing. Comparing
to the original code, teh only thing I can figure out that has changed is
that now we are searching a single catalog rather than "All catalogs".
Does anyone have any ideas what could be causing the search to fail?