none
2.0 Framework Binary Serialization Error RRS feed

  • Question

  • Hello,

    Hopefully I am posting this question in the correct forum, if not if you could please direct me to the correct one.  

     I am getting the error listed below in our DAL (data access layer) when calling a method that accepts a Long Integer.  It seems to happen in our multi-threaded application when many threads call the .Open() method in our DAL, which is a SingleCall.   The error is VERY  erratic .... We are using the 2.0 framework.  

    Has anybody seen an issue like this before or have any advice would be greatly appreciated?

    Thanks,
    Rob Panosh
    Advanced Software Designs

    My Remoting Error:

    Binary stream '97' does not contain a valid BinaryHeader. Possible causes are invalid stream or object version change between serialization and deserialization. 3/15/2013 8:26:18 PM

    Server stack trace:

       at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()

       at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)

       at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)

       at System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryResponseMessage(Stream inputStream, IMethodCallMessage reqMsg, Boolean bStrictBinding)

       at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.DeserializeMessage(IMethodCallMessage mcm, ITransportHeaders headers, Stream stream)

       at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)

    Exception rethrown at [0]:

       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

       at IBusinessObjects.Dal.IBusinessObjectsDal.Open(Int64 id)

       at BusinessObjects.businessObject.Open(Int64 id) in C:\VS2010\ProductVision\Development\ProductVision 5.0\PVClient\BusinessObject\businessObject.vb:line 5593

       at BusinessObjects.Standard.fmFormula.Update(UpdateParameters params, ICollection`1 processedList) in C:\VS2010\ProductVision\Development\ProductVision 5.0\PVClient\BusinessObject\Standard\fmFormula.vb:line 3198
    Saturday, March 16, 2013 4:28 PM

All replies