2011-02-14 10 views
0
<s:Body> 
<s:Fault> 
    <s:Code> 
    <s:Value>s:Sender</s:Value> 
    <s:Subcode> 
     <s:Value xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:DeserializationFailed</s:Value> 
    </s:Subcode> 
    </s:Code> 
    <s:Reason> 
    <s:Text xml:lang="en-US">The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:dataSet. The InnerException message was 'There was an error deserializing the object of type System.Data.DataSet. '��&lt;http://tempuri.org/ISplSynchronizationContracts/ApplyChangesD&#x1A;' contains invalid UTF8 bytes.'. Please see InnerException for more details.</s:Text> 
    </s:Reason> 
    <s:Detail> 
    <ExceptionDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/System.ServiceModel"> 
     <HelpLink i:nil="true" /> 
     <InnerException> 
     <HelpLink i:nil="true" /> 
     <InnerException> 
      <HelpLink i:nil="true" /> 
      <InnerException> 
      <HelpLink i:nil="true" /> 
      <InnerException i:nil="true" /> 
      <Message>Unable to translate bytes [82] at index 0 from specified code page to Unicode.</Message> 
      <StackTrace> at System.Text.DecoderExceptionFallbackBuffer.Throw(Byte[] bytesUnknown, Int32 index) 
    at System.Text.DecoderExceptionFallbackBuffer.Fallback(Byte[] bytesUnknown, Int32 index) 
    at System.Text.DecoderFallbackBuffer.InternalFallback(Byte[] bytes, Byte* pBytes, Char*&amp; chars) 

WCF에서 사용자 지정 바인딩을 사용하고 언젠가 위의 오류가 발생합니다. 아무도 나를 도울 수 있습니까?WCF 예외 예외

+2

귀하의 custum 바인딩은 무엇을하고 있습니까? –

+0

압축 및 암호화. –

답변

0

예외 텍스트가 포함되어 나는 선을 따라 그 곳을 가정 할 contains invalid UTF8 bytes

그것은 제한된 상황에 따라 확인하기 어렵지만를, 당신은 UTF-16 또는 다른 형식으로 직렬화하고있어 서비스가 실패하고 있습니다.

직렬화되는 모든 객체가 UTF-8을 사용하여 명시 적으로 직렬화되었는지 확인하십시오.

+0

WCF 서비스를 통해 Microsoft Ado.Net 동기화 서비스를 사용합니다. 데이터 세트 개체는 동기화 서비스에 의해 내부적으로 전송됩니다. –