[Mono-dev] Error consuming web services

Johann BLAIS jblais at perinfo.biz
Wed Oct 26 08:16:09 EDT 2005


I've been using webservices for quite some time, and now i face a 
strange problem.
I use generated proxies to access my web services. I get an error :

System.Net.WebException: Error getting response stream (ReadDone4): ServerProtocolViolation ---> System.FormatException: Invalid format.
in <0x00103> System.UInt32:Parse (System.String s, Boolean tryParse, System.UInt32 result)
in <0x0001a> System.UInt32:Parse (System.String s)
in <0x0019a> System.Net.WebConnection:GetResponse (System.Byte[] buffer, Int32 max)
in <0x0019b> System.Net.WebConnection:ReadDone (IAsyncResult result)--- End of inner exception stack trace ---

in <0x00158> System.Net.HttpWebRequest:EndGetResponse (IAsyncResult asyncResult)
in <0x00047> System.Net.HttpWebRequest:GetResponse ()
in <0x0004d> System.Web.Services.Protocols.WebClientProtocol:GetWebResponse (System.Net.WebRequest request)

I get this error on every call. It seems that the connection is closed 
from the client side (mono) because i get a "Broken pipe" on my server 
The error appears straight after the call, but usually the webmethod i 
invoke take 10 sec to execute.
I wonder why Mono closes the connection so early.

I'm using mono compiled from source under linux.

Any idea ?


More information about the Mono-devel-list mailing list