[Mono-dev] Error consuming web services
Gonzalo Paniagua Javier
gonzalo at ximian.com
Wed Oct 26 13:20:09 EDT 2005
On Wed, 2005-10-26 at 14:16 +0200, Johann BLAIS wrote:
> 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 18.104.22.168 compiled from source under linux.
> Any idea ?
The connection is closed from the mono side of the story because your
server is sending something that is not an integer as status code.
That's all I can say with the information you provided.
What happens if you run your client from MS.NET? My take is that you'll
get an error too. If not, please, file a bug report attaching the
simplest test case you can get.
More information about the Mono-devel-list