Client Error on search call

On a simple search call, I'm getting the error Client Error. Already deleted/regenerated AppId value this morning.

I have tried this on my PC where I have web developer express (VS 2005) installed, and on a server that has .Net framework 1.1 installed (created stub using wsdl from 1.1, and compiled with vbc from 1.1). I get the same error either way.

Here's what I get for error information.

Server Error in '/WebSite1' Application.

Client Error

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.Web.Services.Protocols.SoapException: Client Error

Source Error:

Line 342: d1 = DateTime.Now Line 343: 'TryLine 344: mySearchResponse = mySearch.Search(mySearchRequest)Line 345: 'Catch Ex As Exception Line 346: 'ErrInfo = Ex.Message

Source File:C:\Documents and Settings\Owner\My Documents\Visual Studio 2005\WebSites\WebSite1\msnsearch.aspx Line:344

Stack Trace:

[SoapException: Client Error] System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +525738 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +213 com.msn.search.soap.MSNSearchService.Search(SearchRequest Request) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\website1\d8f0b618\f97f2f14\mkbeqnmb.1.cs:46 ASP.msnsearch_aspx.DoSearch() in C:\Documents and Settings\Owner\My Documents\Visual Studio 2005\WebSites\WebSite1\msnsearch.aspx:344 ASP.msnsearch_aspx.Page_Load(Object Sender, EventArgs E) in C:\Documents and Settings\Owner\My Documents\Visual Studio 2005\WebSites\WebSite1\msnsearch.aspx:68 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43 System.Web.UI.Control.OnLoad(EventArgs e) +80 System.Web.UI.Control.LoadRecursive() +49 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3695


Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET Version:2.0.50215.44

[4856 byte] By [charliestrause] at [2008-2-26]
# 1

Had to set CultureInfo = "en-US" on overall search request, then worked.

charliestrause at 2007-9-9 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Search: Development...
# 2

charliestrause

II was getting a similar error to this. I found that too many request to the api in a period of time resulted in the error you have here. My advice would be to put in a time delay between your requests, that will greatly reduce the chances of getting this error.

Justin-M at 2007-9-9 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Search: Development...

Windows Live Developer Forums

Site Classified