Wes Weeks

  Home  |   Contact  |   Syndication    |   Login
  21 Posts | 1 Stories | 109 Comments | 3 Trackbacks

News

Archives

Post Categories

We are building an application in Silverlight 2 using WCF for data access.  Everything has been going fairly well, but one of the developers on my team came across this error trying to insert some data:

"The remote server returned an error: NotFound"

Now the error seems to suggest that there is something wrong with the service.  Binding isn't correct, something wrong with the contract interrface, etc.  If you've ever tried to debug a silverlight applicatino, you know you can't attach to it with something like fiddler to see what traffic is being sent across the wire.  Very frustrating and significant time was spent  looking into the problem.  There are several posts on this issue and they all seem to suggest that this is where you need to look.

Turns out it had nothing to do with WCF.  The method being invoked by the web service was erroring but the error information itself wasn't being propogated.  It was sending this 'NotFound' message. 

So if you run across this problem, right some tracing or test cases to ensure the method wrapped by the web service itself works.  I beat the developer on my team with a wet noodle for not having tested his method prior to exposing it as a service.

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted on Wednesday, January 28, 2009 9:50 AM

Feedback

# re: "The remote server returned an error: NotFound" 4/1/2009 7:33 AM Shahid Kapoor
Hi, I am a method which just returns one string .. code is here..



[WebMethod]
public string GetInfo()
{
try
{
return "Get Info";
}
catch (Exception exp)
{
return "-1";
}
finally
{

}
}

but still I am having this error.. what you think could be the reason..


# re: "The remote server returned an error: NotFound" 4/1/2009 8:59 AM Wes Weeks
I tried this on my end and am not getting the issue. Could actually be a problem with the service endpoint in this case.

# re: "The remote server returned an error: NotFound" 5/25/2009 4:38 PM sA21
try to update your web server ...
after each change to made in it you have to update to enable changes in your second project.

# re: "The remote server returned an error: NotFound" 6/9/2009 3:46 PM Yasine
hello, i have WCF web service which insert xml data, when i insert simple serialized data, it function without errors and when i serialize Images and i use that Web Service it returns this error message : The remote server returned an error: NotFound

# re: "The remote server returned an error: NotFound" 7/7/2009 12:14 AM Vips
I have same problem. In my case it works with FireFox but not on IE.

# re: "The remote server returned an error: NotFound" 9/1/2009 9:17 AM Wade
I have the same error, also returning 1 simple string that i know works, it will work for about 20-30 mins perfectly then throws the exception. i am clearing all my varibles and even calling GC.Collect on my webservice at every method. I am at wits end and dont know where to turn to fix it. any help or suggestions will be much appreciated.

Regards

# re: "The remote server returned an error: NotFound" 9/21/2009 4:55 PM JC
I got this message too. I trapped the error on the server and looked at the stack trace. Turned out I messed up on passing one of the parameters to a sp. This was each to see in the stack trace.

I think there error is a general purpose error that provides 0 information. I could pass the stack trace back to the SL3 client as a string, but there must be a better way to handle such errors.

# re: "The remote server returned an error: NotFound" 1/14/2010 6:48 PM VK
step into the WCF project in debug mode...it will help to find out the actual error...it helped me

# re: "The remote server returned an error: NotFound" 2/19/2010 5:09 AM Naved
Even microsoft don't know about this problem. there is no solution for this problem.

# re: "The remote server returned an error: NotFound" 2/21/2010 2:44 PM Jairo
Here it works (well... actually doesn't at all) like Vips's: it works like a charm in Firefox, but get this error in IE.

# re: "The remote server returned an error: NotFound" 3/18/2010 10:30 AM Mr.K
Try to create a clientaccesspolicy.xml file and put it in the web service. It worked fine for me

# re: "The remote server returned an error: NotFound" 3/24/2010 6:20 AM dd
I had the same issue, i was just entering a -1 parameter rather than a parameter that would mean something.

# re: "The remote server returned an error: NotFound" 6/22/2010 3:24 AM ramesh
can anyone help me to resolve this issue....

# re: "The remote server returned an error: NotFound" 6/22/2010 4:08 AM ramesh J
The remote server returned an error: NotFound

# re: "The remote server returned an error: NotFound" 7/27/2010 4:20 PM amr
this proplem also with me .some time i get this Error
when i save data from silverlight

# re: "The remote server returned an error: NotFound" 12/24/2010 6:39 AM Venkatesh
{System.ServiceModel.CommunicationException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.
at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
at System.Net.Browser.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)
--- End of inner exception stack trace ---
at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
--- End of inner exception stack trace ---
at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
at Symphony.Care5000.Application.CommonAgent.CommonClient.CommonClientChannel.EndGetServices(IAsyncResult result)
at Symphony.Care5000.Application.CommonAgent.CommonClient.Symphony.Care5000.Application.CommonAgent.ICommon.EndGetServices(IAsyncResult result)
at Symphony.Care5000.Application.CommonAgent.CommonClient.OnEndGetServices(IAsyncResult result)
at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)}

# re: "The remote server returned an error: NotFound" 1/11/2011 11:44 AM R2O
I have faced this issue once and, in fact, that was hapening a error inside my WCF service, and than, this message was throw.

After some research, I realized that this message is throw always that some error occur inside the WCF service.

# re: "The remote server returned an error: NotFound" 2/21/2011 1:24 AM mit
help please

# re: "The remote server returned an error: NotFound" 3/12/2011 5:19 AM Guruji
Hi, Try just loading a single record without any text fields or images and saving it. That will tell you quickly whether or not this is the problem, my guess is it is related to the size. You can use the SelectAllExcept( ... ) method to exclude any large columns.

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: