Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > ORM Profiler Section > Bugs & Issues> Exception: End of Stream encountered before parsing was completed.
 

Pages: 1
Bugs & Issues
Exception: End of Stream encountered before parsing was completed.
Page:1/1 

  Print all messages in this thread  
Poster Message
grzegorz.mroz
User



Location:
Cracow, Poland
Joined on:
24-Aug-2015 09:37:05
Posted:
1 posts
# Posted on: 24-Aug-2015 09:57:26.  
I have .NET console application that uses the ORMProfiler. While running a long SQL query(about 47s) exception appeared, and after that whole application exits with error message:

Code:
Exception information.
=============================================================
ORM Profiler version: v1.5. Build: July 15th, 2015

Exception details:
=====================
Message: End of Stream encountered before parsing was completed.
Source: mscorlib
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 SD.Tools.OrmProfiler.Shared.MessageSerializers.DeserializeMessage(Byte[] bMessage) in c:\Myprojects\VS.NET Projects\OrmProfilerv1.5_hg\SD.Tools.OrmProfiler.Shared\MessageSerializers.cs:line 25
at SD.Tools.OrmProfiler.Client.Core.ListenerBody.pipeServer_MessageReceived(Object sender, ContainerEventArgs`1 args) in c:\Myprojects\VS.NET Projects\OrmProfilerv1.5_hg\SD.Tools.OrmProfiler.Client.Core\Listener.cs:line 109
at SD.Tools.BCLExtensions.SystemRelated.EventExtensionMethods.RaiseEvent[T](EventHandler`1 handler, Object sender, T arguments) in c:\Myprojects\VS.NET Projects\BCLExtensions_hg\SystemRelated\EventExtensionMethods.cs:line 62
at SD.Tools.OrmProfiler.Shared.NamedPipeStreamBase.OnMessageReceived(ContainerEventArgs`1 args) in c:\Myprojects\VS.NET Projects\OrmProfilerv1.5_hg\SD.Tools.OrmProfiler.Shared\NamedPipeStream\NamedPipeStreamBase.cs:line 110
at SD.Tools.OrmProfiler.Shared.NamedPipeStreamServer.Connection_MessageReceived(Object sender, ContainerEventArgs`1 args) in c:\Myprojects\VS.NET Projects\OrmProfilerv1.5_hg\SD.Tools.OrmProfiler.Shared\NamedPipeStream\NamedPipeStreamServer.cs:line 128
at SD.Tools.BCLExtensions.SystemRelated.EventExtensionMethods.RaiseEvent[T](EventHandler`1 handler, Object sender, T arguments) in c:\Myprojects\VS.NET Projects\BCLExtensions_hg\SystemRelated\EventExtensionMethods.cs:line 62
at SD.Tools.OrmProfiler.Shared.NamedPipeStreamBase.OnMessageReceived(ContainerEventArgs`1 args) in c:\Myprojects\VS.NET Projects\OrmProfilerv1.5_hg\SD.Tools.OrmProfiler.Shared\NamedPipeStream\NamedPipeStreamBase.cs:line 110
at SD.Tools.OrmProfiler.Shared.NamedPipeStreamConnection.EndRead(IAsyncResult result) in c:\Myprojects\VS.NET Projects\OrmProfilerv1.5_hg\SD.Tools.OrmProfiler.Shared\NamedPipeStream\NamedPipeStreamConnection.cs:line 69
at System.IO.Pipes.PipeStream.AsyncPSCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOverlapped)
at System.Threading._IOCompletionCallback.IOCompletionCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

Inner exception: <null>


Please let me know in case you will need more informations to solve this issue
Thank you in advance
  Top
Otis
ORM Profiler Team



Location:
The Hague, The Netherlands
Joined on:
22-Aug-2011 10:26:38
Posted:
613 posts
# Posted on: 26-Aug-2015 09:38:56.  
It's only with this long running query? If you don't initialize the interceptor (so run your code normally) the long running query completes OK?

Frans Bouma
ORM Profiler / LLBLGen Pro Lead Developer | Blog | Twitter
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.09082011 Final.