I have a WCF method, for example:
public string GetSomething(MyObject obj)
{
return "Something";
}
When I call this from my silverlight application, I get the error message:
System.Net.WebException: the remote server returned an error: NotFound .....
I call the method from my silverlight application as follows:
mProxy.GetSomethingAsync(new MyObject());
Now, when I call a method like this, it works fine:
mProxy.GetSomethingAsync(null);
Thus, there is a problem with the transfer of a complex object.
Please note that I am returning this MyObject from another method and it works fine, so this is not a serializable problem. I also changed maxBufferSize and maxReceivedMessageSize to the maximum value so that it doesn't exist, and I still skip the empty object, so this should not be a size issue. And MyObject contains only simple data types.
- ?