leejw51 / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
0 stars 0 forks source link

NetworkStream (_stream) throws exception #236

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please include an e-mail address if this might need a dialogue!
==============

What steps will reproduce the problem?
1.
When my client (DatanHandler) connects to server (ClientHandler)

NetworkStream (_stream) throws exception on line:
object obj = Serializer.Deserialize<object>(_stream);

(Not any serialized packed send yet. Just on socket connection)

2.
3.

What is the expected output? What do you see instead?
Expected:
All goes Ok.

Instead:
When I debug i see some errors on _stream:

Length = '_stream.Length' threw an exception of type 
'System.NotSupportedException'

Position = '_stream.Position' threw an exception of type 
'System.NotSupportedException'

exception: "This stream does not support seek operations."

What version of the product are you using? On what operating system?
new r444

Please provide any additional information below.

email: digijesters [ at ] gmail.com

Original issue reported on code.google.com by DigiJest...@gmail.com on 27 Sep 2011 at 9:33

GoogleCodeExporter commented 9 years ago
Can you provide the .Stacktrace of the exception please? I have a test locally 
that represents a non-seekable stream (no .Length either etc), and it works 
fine. The .Stacktrace would tell me where to look.

Original comment by marc.gravell on 27 Sep 2011 at 9:59