none
WCF custom binding sometime throw exception while deserializing dataset of ado.net sync services. RRS feed

  • Question

  • i am using WCF custom binding for my ado.net synyc services. I have compress and encrypt the request in override writemessage method and decrypt and decompress in override Readmessage method.
    I am getting following errors and some others.
    IDispatchMessageFormatter.DeserializeRequest
    1)Error reading body: System.Xml.XmlException: '��<http://tempuri.org/ISplSynchronizationContracts/ApplyChangesD' contains invalid UTF8 bytes. ...
    2)The formatter threw an exception while trying to deserialize the message:
    I have used UTF-8 message encoding.

    Can someone help? 
    I have used maximum size in settings.

    • Moved by Yi-Lun Luo Wednesday, February 16, 2011 2:16 AM Off Topic. (From:Windows Communication Foundation)
    Tuesday, February 15, 2011 5:17 AM

Answers

  • To help narrow down the issues, can you try to use the standard serialization instead of custom one, and also try to remove the compression/encryption?
    Also more stack trace will help.
    And can you post the schema of the table - sometimes we have seen that certain data types can cause binding errors.
    This posting is provided AS IS with no warranties, and confers no rights
    Wednesday, February 23, 2011 1:06 AM