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

Hubert FONGARNAND informatique.internet at fiducial.fr
Fri Sep 30 07:36:02 EDT 2005


Le vendredi 30 septembre 2005 à 12:50 +0200, Robert Jordan a écrit :

> 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).


I've done a test with : 				
string envoi=Console.ReadLine();
Console.WriteLine(ServerManager.Echo(envoi));

The problem is always the same... It doesn't changes anything... that's
not a MCS pb...
but a binary reader problem (see bug #76276)

hub


> 
> 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...
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
_______________________________________________
Ce message et les éventuels documents joints peuvent contenir des informations confidentielles.
Au cas où il ne vous serait pas destiné, nous vous remercions de bien vouloir le supprimer et en aviser immédiatement l'expéditeur. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou publication, totale ou partielle et quel qu'en soit le moyen est formellement interdite.
Les communications sur internet n'étant pas sécurisées, l'intégrité de ce message n'est pas assurée et la société émettrice ne peut être tenue pour responsable de son contenu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050930/5ea0476c/attachment.html 


More information about the Mono-devel-list mailing list