Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Commerce Server Solutiionsites > error during se...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 275 of 307
Post > Topic >>

error during search in solution site code I can't figure out

by "=?Utf-8?B?RGV2aW4=?=" <Devin@[EMAIL PROTECTED] > Jan 14, 2006 at 11:36 AM

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?
 




 3 Posts in Topic:
error during search in solution site code I can't figure out
"=?Utf-8?B?RGV2aW4=?  2006-01-14 11:36:02 
RE: error during search in solution site code I can't figure out
"=?Utf-8?B?SmFtaWU=?  2006-02-03 12:00:42 
RE: error during search in solution site code I can't figure out
"=?Utf-8?B?RGV2aW4=?  2006-02-03 12:13:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 17:28:10 CST 2008.