views:

450

answers:

3

silverlight uses wcf with basicHttpBinding




i send the image as an byte[], and it's working as long as the image has less than 20KB

but when it's bigger i get the error: The remote server returned an error: NotFound

in the Reference.cs

public bool EndSave(System.IAsyncResult result) { object[] _args = new object[0]; bool _result = ((bool)(base.EndInvoke("Save", _args, result))); // error return _result; }

A: 

Please catch the exception on the wcf side in the interface implementation and post that.

The error may be related to this problem: "WCF Message Size Issue"

Sandor Davidhazi
A: 

Check the "maxReceivedMessageSize" property (representing the size in bytes) on the binding configuration. If your data exceeds that size, the message is discarded.

AlexDrenea
A: 

Question: How did you convert image to byte[] in Silverlight client?

ameyagholap