[Mono-dev] DotNet Remoting : Failed to read past end of stream

Robert Jordan robertj at gmx.net
Fri Sep 30 06:50:35 EDT 2005


Hi,

By any chance, what happens if you use a plain ASCII string
or when you use a string read from somewhere else (not
a literal declared in source code).

A couple of weeks ago I've seen some commits on MCS regarding
the codepage of the source code. I think they were first
released with 1.1.9.

Rob

> I've done an ethereal dump to try to understand the problem :
> .NET..............#...tcp://localhost:4570/CServerManager........application/octet-stream..........................Echo.bServer.client.IServerManager, Client, Version=1.0.2098.31357, Culture=neutral, PublicKeyToken=null......Hello..NET....................................Hello..NET..............#...tcp://localhost:4570/CServerManager........application/octet-stream..........................Echo.bServer.client.IServerManager, Client, Version=1.0.2098.31357, Culture=neutral, PublicKeyToken=null.......CODE des types de notes .. afficher ex NOTTECH_EXPE, on g..re * exemple NOTETECH* on prend tous les codes commen..ant par NOTENAT..NET......D........................"......................System.IO.EndOfStreamException
> ....ClassName.Message.InnerException.HelpURL.StackTraceString.RemoteStackTraceString.RemoteStackIndex.HResult.Source.ExceptionMethod..................System.IO.EndOfStreamException....."Failed to read past end of stream.
> 
> .......in <0x000f7> System.IO.BinaryReader:FillBuffer (Int32 bytes)
> in <0x0007c> System.IO.BinaryReader:ReadString ()
> in <0x002d2>
> System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadPrimitiveTypeValue (System.IO.BinaryReader reader, System.Type type)
> in <0x001a0>
> System.Runtime.Serialization.Formatters.Binary.MessageFormatter:ReadMethodCall (System.IO.BinaryReader reader, Boolean hasHeaders, System.Runtime.Remoting.Messaging.HeaderHandler headerHandler, System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter)
> in <0x000ba>
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler)
> in <0x00161>
> System.Runtime.Remoting.Channels.BinaryServerFormatterSink:ProcessMessage (IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, System.IO.Stream requestStream, IMessage responseMsg, ITransportHeaders responseHeaders, System.IO.Stream responseStream)
> ..............mscorlib
> 
> I hope it could help someone...




More information about the Mono-devel-list mailing list