Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

XML Deserialize Error

$
0
0

Hi, I have a WinForm application that passes datasets back and forth through a WCF service.  I have hundreds of clients using this application without any issues however, there is one that keeps getting this message:

There is an error in XML document (1, 147).

I have spent countless hours researching and cannot seem to figure out why one client would receive these messages on a regular basis (some others do get it by very rarely).

Here is the full stack trace.

Message: There is an error in XML document (1, 147).
Source: System.Xml
Stack Trace:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Common.AppWebWebReference.AppWeb.Invoke(String typeName, String methodName, Byte[] data, TupleOfintstringstringstringbooleanstringbooleanTupleOfintintcd6ORBnm employee)
   at Common.WebServiceProtocol.<>c__DisplayClass7`2.<Invoke>b__3(AppWeb service)
   at Common.BasicAuthSoapHttpClient.CallWithRetry[TResponse](Func`2 callToMake)
   at Common.WebServiceProtocol.AppWebHandler[TResponse](Func`2 funcOperation)
   at Common.WebServiceProtocol.Invoke[T,TU](Boolean runAsync, String type, String method, TU[]& byrefs, Object[] parameters)
   at BackOfficeLogic.GroupLogic.GetMemberGroup(Int32 groupId)
   at CommonUI.Controls.MemberGroupFilter..ctor()
   at UI.ReportsModule.ReportControls.MemberReportFilter..ctor()
   at UI.ReportsModule.ReportControls.MemberReportSettingFilter.btnBrowse_Click(Object sender, EventArgs e)
Target Site: Module - C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll Method: Deserialize
Inner Exception: 
Message: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
Source: System
Stack Trace:    at System.Net.GZipWrapperStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.IO.StreamReader.ReadBuffer(Char[] userBuffer, Int32 userOffset, Int32 desiredChars, Boolean& readToUserBuffer)
   at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32 count)
   at System.Xml.XmlTextReaderImpl.ReadData()
   at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
   at System.Xml.XmlTextReaderImpl.ParseText()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlTextReader.Read()
   at System.Xml.XmlTextReaderImpl.InitReadElementContentAsBinary()
   at System.Xml.XmlTextReaderImpl.ReadElementContentAsBase64(Byte[] buffer, Int32 index, Int32 count)
   at System.Xml.XmlTextReader.ReadElementContentAsBase64(Byte[] buffer, Int32 index, Int32 count)
   at System.Xml.Serialization.XmlSerializationReader.ReadByteArray(Boolean isBase64)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read12_InvokeResponse()
   at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer1.Deserialize(XmlSerializationReader reader)
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)

Does anyone have any ideas on how I can troubleshoot this?  Since it is isolated to one client, I believe it may be due to their local network or ISP however I am not sure.


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>