Silverlight and WCF: NotFound Error!

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.

- ?

+3
2

"Not Found", , Silverlight WCF.

, (). ( , ), 10-20% .

SilverlightFaultBehavior . "Not Found" .

+10

WcfTestClient.exe WCF. . Silverlight WCF, Silverlight 3, .

(http://msdn.microsoft.com/en-us/magazine/ee294456.aspx)

+2

Source: https://habr.com/ru/post/1734007/


All Articles