Wes Weeks

  Home  |   Contact  |   Syndication    |   Login
  17 Posts | 1 Stories | 34 Comments | 3 Trackbacks

News

Twitter












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.

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.

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