www.hessiancsharp.org Forum Index www.hessiancsharp.org
Support and help forum for HessianC#
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Send Byte-Arrays in blocks gets exception [C#]

 
Post new topic   Reply to topic    www.hessiancsharp.org Forum Index -> Hessian C#
View previous topic :: View next topic  
Author Message
rubbldiekatz



Joined: 14 Nov 2008
Posts: 3

PostPosted: Tue Dec 02, 2008 3:03 pm    Post subject: Send Byte-Arrays in blocks gets exception [C#] Reply with quote

hi,

i want to send bytearrays blockwise to the server...

so i have 3 methods:

StartBuffer()
WriteBuffer(byte[] buf, int len)
EndBuffer()

StartBuffer works, EndBuffer too..

But if i loop throw my stream and call WriteBuffer, i get the exception


Quote:
Exception by proxy call
System.Net.WebException: Die zugrunde liegende Verbindung wurde geschlossen: Eine Verbindung, deren Aufrechterhaltung erwartet wurde, ist vom Server geschlossen worden.. ---> System.IO.IOException: Von der Übertragungsverbindung können keine Daten gelesen werden: Eine vorhandene Verbindung wurde vom Remotehost geschlossen. ---> System.Net.Sockets.SocketException: Eine vorhandene Verbindung wurde vom Remotehost geschlossen
bei System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
bei System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
bei System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
bei System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.Net.HttpWebRequest.GetResponse()
bei hessiancsharp.client.CHessianMethodCaller.DoHessianMethodCall(Object[] arrMethodArgs, MethodInfo methodInfo) in C:\development\vs\NServer\HessianCSharp\hessiancsharp\client\CHessianMethodCaller.cs:Zeile 197.Die zugrunde liegende Verbindung wurde geschlossen: Eine Verbindung, deren Aufrechterhaltung erwartet wurde, ist vom Server geschlossen worden..


this exception doesn't occur, if i debug through it, or if i send the buffer at one time (but wrong way).

it seems that the server is not really able to get large data in short time?

or how can i easyly send byte[] in c# in blocks?

Regards,

Adrian
Back to top
View user's profile Send private message
rubbldiekatz



Joined: 14 Nov 2008
Posts: 3

PostPosted: Mon Jan 05, 2009 8:59 am    Post subject: Reply with quote

I'll try to use Hessian 1.3.3, not 1.3.0 like i did Smile

I hope that will help.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.hessiancsharp.org Forum Index -> Hessian C# All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group