none
Ado.net sync services with WCF RRS feed

  • Question

  • I am getting following errors, can anybody help out. Normally my sync is working some time it throws following exceptions. And i am worried if i am getting loss of data from client. 

     

     The formatter threw an exception while trying to deserialize the message: 

        There was an error while trying to deserialize parameter http://tempuri.org/:ApplyChangesResult.

         The InnerException message was 'There was an error deserializing the object of 

         type Microsoft.Synchronization.Data.SyncContext. Unexpected end of file. 

         Following elements are not closed: diffgram, _dataSet, ApplyChangesResult, ApplyChangesResponse,

          Body, Envelope, Text, Logs, DocumentElement, diffgram, _serverRows, SyncConflict, _conflicts, 

          SyncTableProgress, _tablesProgress, _groupProgress, ApplyChangesResult, ApplyChangesResponse, Body, 

          Envelope. Line 18, position 2104.'.  

          Please see InnerException for more details.  StackTrace:    at System.RuntimeMethodHandle._InvokeMethodFast

          (Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, 

          RuntimeTypeHandle typeOwner)     at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] 

          arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)     

          at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, 

          Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)     

          at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] 

          parameters, CultureInfo culture)     at Microsoft.Synchronization.Data.ServerSyncProviderProxy.ApplyChanges

          (SyncGroupMetadata groupMetadata, DataSet dataSet, SyncSession syncSession)     at Microsoft.Synchronization.

          SyncAgent.UploadChanges(SyncGroupMetadata groupMetadata)     at Microsoft.Synchronization.SyncAgent.Synchronize

          ()     at SPLocker.Client.Synchronization.Library.SyncService.HeartBeatSynchronization()  

          TargetSite: System.Object _InvokeMethodFast(System.Object, System.Object[], System.SignatureStruct ByRef, 

          System.Reflection.MethodAttributes, System.RuntimeTypeHandle)

     

    Tuesday, June 22, 2010 5:59 AM

All replies

  • looks like the upload is incomplete or corrupted when Sync Fx tries to process it. You might want to enable WCF tracing to check if there's anything else happening during the upload.  Or you may also want to do batching.
    Tuesday, June 22, 2010 10:44 AM
    Moderator
  • Thanks for reply, I am using SQL CE with change tracking option as client and sqlserver2008 as server. And i think it does not support batching. I have set maximum size in read quota of WCF  configuration but still get this error. I have no idea why it happens some time.

    Following is the detail of my architecture which may help u to guide me.

    http://www.codeproject.com/KB/smart/sync_services.aspx

     

    Thanks

    Thursday, June 24, 2010 6:00 AM
  • try enabling WCF tracing so you get to see what's happening under the hood in WCF when you get the error.

    Thursday, June 24, 2010 1:42 PM
    Moderator
  • I have enabled the tracing but got no luck to fix this issue. Please see following if you can guide, I have set reader quota to maximum but still getting error.

     

     

    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">

    <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">

    <EventID>131076</EventID>

    <Type>3</Type>

    <SubType Name="Error">0</SubType>

    <Level>2</Level>

    <TimeCreated SystemTime="2010-07-01T07:57:08.0069310Z" />

    <Source Name="System.ServiceModel" />

    <Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" />

    <Execution ProcessName="w3wp" ProcessID="3928" ThreadID="8" />

    <Channel />

    <Computer>.</Computer>

    </System>

    <ApplicationData>

    <TraceData>

    <DataItem>

    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error">

    <TraceIdentifier>http://msdn.microsoft.com/da-DK/library/System.ServiceModel.Diagnostics.TraceHandledException.aspx</TraceIdentifier>

    <Description>Handling an exception.</Description>

    <AppDomain>/LM/W3SVC/1/ROOT/SynchronizationService-1-129223840505675640</AppDomain>

    <Exception>

    <ExceptionType>System.ServiceModel.Dispatcher.NetDispatcherFaultException, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>

    <Message>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. Unexpected end of file. Following elements are not closed: element, sequence, complexType, element, choice, complexType, element, schema, dataSet, ApplyChanges, Body, Envelope, PaymentDetailID, TransactionPaymentDetails, NewDataSet, diffgram, dataSet, ApplyChanges, Body, Envelope. Line 1, position 19690.'.  Please see InnerException for more details.</Message>

    <StackTrace>

    at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameterPart(XmlDictionaryReader reader, PartInfo part, Boolean isRequest)

    at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameter(XmlDictionaryReader reader, PartInfo part, Boolean isRequest)

    at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameters(XmlDictionaryReader reader, PartInfo[] parts, Object[] parameters, Boolean isRequest)

    at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, String action, MessageDescription messageDescription, Object[] parameters, Boolean isRequest)

    at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeBodyContents(Message message, Object[] parameters, Boolean isRequest)

    at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeRequest(Message message, Object[] parameters)

    at System.ServiceModel.Dispatcher.DispatchOperationRuntime.DeserializeInputs(MessageRpc&amp; rpc)

    at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc)

    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc)

    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc&amp; rpc)

    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc&amp; rpc)

    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc&amp; rpc)

    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc&amp; rpc)

    at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

    </StackTrace>

    <ExceptionString>System.ServiceModel.Dispatcher.NetDispatcherFaultException: 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. Unexpected end of file. Following elements are not closed: element, sequence, complexType, element, choice, complexType, element, schema, dataSet, ApplyChanges, Body, Envelope, PaymentDetailID, TransactionPaymentDetails, NewDataSet, diffgram, dataSet, ApplyChanges, Body, Envelope. Line 1, position 19690.'.  Please see InnerException for more details. ---&gt; System.Runtime.Serialization.SerializationException: There was an error deserializing the object of type System.Data.DataSet. Unexpected end of file. Following elements are not closed: element, sequence, complexType, element, choice, complexType, element, schema, dataSet, ApplyChanges, Body, Envelope, PaymentDetailID, TransactionPaymentDetails, NewDataSet, diffgram, dataSet, ApplyChanges, Body, Envelope. Line 1, position 19690. ---&gt; System.Xml.XmlException: Unexpected end of file. Following elements are not closed: element, sequence, complexType, element, choice, complexType, element, schema, dataSet, ApplyChanges, Body, Envelope, PaymentDetailID, TransactionPaymentDetails, NewDataSet, diffgram, dataSet, ApplyChanges, Body, Envelope. Line 1, position 19690.

       at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, String res, String arg1, String arg2, String arg3)

       at System.Xml.XmlExceptionHelper.ThrowUnexpectedEndOfFile(XmlDictionaryReader reader)

       at System.Xml.XmlUTF8TextReader.ReadAttributes()

       at System.Xml.XmlUTF8TextReader.ReadStartElement()

       at System.Xml.XmlUTF8TextReader.Read()

       at System.Runtime.Serialization.XmlSerializableReader.Read()

       at System.Data.DataTextReader.Read()

       at System.Xml.Schema.Parser.Parse(XmlReader reader, String targetNamespace)

       at System.Xml.Schema.XmlSchema.Read(XmlReader reader, ValidationEventHandler validationEventHandler)

       at System.Data.DataSet.ReadXSDSchema(XmlReader reader, Boolean denyResolving)

       at System.Data.XmlDataLoader.ProcessXsdSchema()

       at System.Data.XmlDataLoader.LoadColumn(DataColumn column, Object[] foundColumns)

       at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)

       at System.Data.XmlDataLoader.LoadData(XmlReader reader)

       at System.Data.DataSet.ReadXmlDiffgram(XmlReader reader)

       at System.Data.DataSet.ReadXml(XmlReader reader, XmlReadMode mode, Boolean denyResolving)

       at System.Data.DataSet.ReadXmlSerializable(XmlReader reader)

       at System.Data.DataSet.System.Xml.Serialization.IXmlSerializable.ReadXml(XmlReader reader)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadIXmlSerializable(XmlSerializableReader xmlSerializableReader, XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, Boolean isMemberType)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadIXmlSerializable(XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, Boolean isMemberType)

       at System.Runtime.Serialization.XmlDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, DataContract&amp; dataContract)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns)

       at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName)

       at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName)

       --- End of inner exception stack trace ---

       at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName)

       at System.Runtime.Serialization.DataContractSerializer.ReadObject(XmlDictionaryReader reader, Boolean verifyObjectName)

       at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameterPart(XmlDictionaryReader reader, PartInfo part, Boolean isRequest)

       --- End of inner exception stack trace ---

       at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameterPart(XmlDictionaryReader reader, PartInfo part, Boolean isRequest)

       at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameter(XmlDictionaryReader reader, PartInfo part, Boolean isRequest)

       at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameters(XmlDictionaryReader reader, PartInfo[] parts, Object[] parameters, Boolean isRequest)

       at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, String action, MessageDescription messageDescription, Object[] parameters, Boolean isRequest)

       at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeBodyContents(Message message, Object[] parameters, Boolean isRequest)

       at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeRequest(Message message, Object[] parameters)

       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.DeserializeInputs(MessageRpc&amp; rpc)

       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc)

       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc)

       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc&amp; rpc)

       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc&amp; rpc)

       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc&amp; rpc)

       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc&amp; rpc)

       at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</ExceptionString>

    <InnerException>

    <ExceptionType>System.Runtime.Serialization.SerializationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>

    <Message>There was an error deserializing the object of type System.Data.DataSet. Unexpected end of file. Following elements are not closed: element, sequence, complexType, element, choice, complexType, element, schema, dataSet, ApplyChanges, Body, Envelope, PaymentDetailID, TransactionPaymentDetails, NewDataSet, diffgram, dataSet, ApplyChanges, Body, Envelope. Line 1, position 19690.</Message>

    <StackTrace>

    at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName)

    at System.Runtime.Serialization.DataContractSerializer.ReadObject(XmlDictionaryReader reader, Boolean verifyObjectName)

    at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameterPart(XmlDictionaryReader reader, PartInfo part, Boolean isRequest)

    </StackTrace>

    <ExceptionString>System.Runtime.Serialization.SerializationException: There was an error deserializing the object of type System.Data.DataSet. Unexpected end of file. Following elements are not closed: element, sequence, complexType, element, choice, complexType, element, schema, dataSet, ApplyChanges, Body, Envelope, PaymentDetailID, TransactionPaymentDetails, NewDataSet, diffgram, dataSet, ApplyChanges, Body, Envelope. Line 1, position 19690. ---&gt; System.Xml.XmlException: Unexpected end of file. Following elements are not closed: element, sequence, complexType, element, choice, complexType, element, schema, dataSet, ApplyChanges, Body, Envelope, PaymentDetailID, TransactionPaymentDetails, NewDataSet, diffgram, dataSet, ApplyChanges, Body, Envelope. Line 1, position 19690.

       at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, String res, String arg1, String arg2, String arg3)

       at System.Xml.XmlExceptionHelper.ThrowUnexpectedEndOfFile(XmlDictionaryReader reader)

       at System.Xml.XmlUTF8TextReader.ReadAttributes()

       at System.Xml.XmlUTF8TextReader.ReadStartElement()

       at System.Xml.XmlUTF8TextReader.Read()

       at System.Runtime.Serialization.XmlSerializableReader.Read()

       at System.Data.DataTextReader.Read()

       at System.Xml.Schema.Parser.Parse(XmlReader reader, String targetNamespace)

       at System.Xml.Schema.XmlSchema.Read(XmlReader reader, ValidationEventHandler validationEventHandler)

       at System.Data.DataSet.ReadXSDSchema(XmlReader reader, Boolean denyResolving)

       at System.Data.XmlDataLoader.ProcessXsdSchema()

       at System.Data.XmlDataLoader.LoadColumn(DataColumn column, Object[] foundColumns)

       at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)

       at System.Data.XmlDataLoader.LoadData(XmlReader reader)

       at System.Data.DataSet.ReadXmlDiffgram(XmlReader reader)

       at System.Data.DataSet.ReadXml(XmlReader reader, XmlReadMode mode, Boolean denyResolving)

       at System.Data.DataSet.ReadXmlSerializable(XmlReader reader)

       at System.Data.DataSet.System.Xml.Serialization.IXmlSerializable.ReadXml(XmlReader reader)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadIXmlSerializable(XmlSerializableReader xmlSerializableReader, XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, Boolean isMemberType)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadIXmlSerializable(XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, Boolean isMemberType)

       at System.Runtime.Serialization.XmlDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, DataContract&amp; dataContract)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns)

       at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName)

       at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName)

       --- End of inner exception stack trace ---

       at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName)

       at System.Runtime.Serialization.DataContractSerializer.ReadObject(XmlDictionaryReader reader, Boolean verifyObjectName)

       at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameterPart(XmlDictionaryReader reader, PartInfo part, Boolean isRequest)</ExceptionString>

    <InnerException>

    <ExceptionType>System.Xml.XmlException, System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>

    <Message>Unexpected end of file. Following elements are not closed: element, sequence, complexType, element, choice, complexType, element, schema, dataSet, ApplyChanges, Body, Envelope, PaymentDetailID, TransactionPaymentDetails, NewDataSet, diffgram, dataSet, ApplyChanges, Body, Envelope. Line 1, position 19690.</Message>

    <StackTrace>

    at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, String res, String arg1, String arg2, String arg3)

    at System.Xml.XmlExceptionHelper.ThrowUnexpectedEndOfFile(XmlDictionaryReader reader)

    at System.Xml.XmlUTF8TextReader.ReadAttributes()

    at System.Xml.XmlUTF8TextReader.ReadStartElement()

    at System.Xml.XmlUTF8TextReader.Read()

    at System.Runtime.Serialization.XmlSerializableReader.Read()

    at System.Data.DataTextReader.Read()

    at System.Xml.Schema.Parser.Parse(XmlReader reader, String targetNamespace)

    at System.Xml.Schema.XmlSchema.Read(XmlReader reader, ValidationEventHandler validationEventHandler)

    at System.Data.DataSet.ReadXSDSchema(XmlReader reader, Boolean denyResolving)

    at System.Data.XmlDataLoader.ProcessXsdSchema()

    at System.Data.XmlDataLoader.LoadColumn(DataColumn column, Object[] foundColumns)

    at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)

    at System.Data.XmlDataLoader.LoadData(XmlReader reader)

    at System.Data.DataSet.ReadXmlDiffgram(XmlReader reader)

    at System.Data.DataSet.ReadXml(XmlReader reader, XmlReadMode mode, Boolean denyResolving)

    at System.Data.DataSet.ReadXmlSerializable(XmlReader reader)

    at System.Data.DataSet.System.Xml.Serialization.IXmlSerializable.ReadXml(XmlReader reader)

    at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadIXmlSerializable(XmlSerializableReader xmlSerializableReader, XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, Boolean isMemberType)

    at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadIXmlSerializable(XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, Boolean isMemberType)

    at System.Runtime.Serialization.XmlDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)

    at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader)

    at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, DataContract&amp; dataContract)

    at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns)

    at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName)

    at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName)

    </StackTrace>

    <ExceptionString>System.Xml.XmlException: Unexpected end of file. Following elements are not closed: element, sequence, complexType, element, choice, complexType, element, schema, dataSet, ApplyChanges, Body, Envelope, PaymentDetailID, TransactionPaymentDetails, NewDataSet, diffgram, dataSet, ApplyChanges, Body, Envelope. Line 1, position 19690.

       at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, String res, String arg1, String arg2, String arg3)

       at System.Xml.XmlExceptionHelper.ThrowUnexpectedEndOfFile(XmlDictionaryReader reader)

       at System.Xml.XmlUTF8TextReader.ReadAttributes()

       at System.Xml.XmlUTF8TextReader.ReadStartElement()

       at System.Xml.XmlUTF8TextReader.Read()

       at System.Runtime.Serialization.XmlSerializableReader.Read()

       at System.Data.DataTextReader.Read()

       at System.Xml.Schema.Parser.Parse(XmlReader reader, String targetNamespace)

       at System.Xml.Schema.XmlSchema.Read(XmlReader reader, ValidationEventHandler validationEventHandler)

       at System.Data.DataSet.ReadXSDSchema(XmlReader reader, Boolean denyResolving)

       at System.Data.XmlDataLoader.ProcessXsdSchema()

       at System.Data.XmlDataLoader.LoadColumn(DataColumn column, Object[] foundColumns)

       at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)

       at System.Data.XmlDataLoader.LoadData(XmlReader reader)

       at System.Data.DataSet.ReadXmlDiffgram(XmlReader reader)

       at System.Data.DataSet.ReadXml(XmlReader reader, XmlReadMode mode, Boolean denyResolving)

       at System.Data.DataSet.ReadXmlSerializable(XmlReader reader)

       at System.Data.DataSet.System.Xml.Serialization.IXmlSerializable.ReadXml(XmlReader reader)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadIXmlSerializable(XmlSerializableReader xmlSerializableReader, XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, Boolean isMemberType)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadIXmlSerializable(XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, Boolean isMemberType)

       at System.Runtime.Serialization.XmlDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, DataContract&amp; dataContract)

       at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns)

       at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName)

       at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName)</ExceptionString>

    </InnerException>

    </InnerException>

    </Exception>

    </TraceRecord>

    </DataItem>

    </TraceData>

    </ApplicationData>

    </E2ETraceEvent>

    Thursday, July 1, 2010 10:39 AM
  • hi malik,

    how big is the data being synched? care to share the config file and i'll see if i can reproduce. I still think this has something to do with WCF rather than Sync Fx.

     

    Thursday, July 1, 2010 12:36 PM
    Moderator
  • Thanks again for you cooperation..

    I have tried bulk of data from my system and it works, but error shows some time xml is not complete as error show ending element was not complete.

    Following is the configuration on server for WCF file.

    <binding name="Config" messageEncoding="Text" textEncoding="utf-8"  closeTimeout="00:05:00" openTimeout="15:00:00" receiveTimeout="15:00:00"  sendTimeout="15:00:00">
                        <CryptoMessageEncoding innerMessageEncoding="textMessageEncoding" >
                            <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
                                        maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
                        </CryptoMessageEncoding>/>
                        <httpTransport hostNameComparisonMode="StrongWildcard"
                                       manualAddressing="False"
                                       maxReceivedMessageSize="2147483647"
                                       authenticationScheme="Anonymous"
                                       bypassProxyOnLocal="False"
                                       realm=""
                                       useDefaultWebProxy="True" />

                    </binding>

    Friday, July 2, 2010 8:13 AM