[Mono-list] bug in HttpWebRequest and https ?

Gonzalo Paniagua Javier gonzalo.reply.to.the.list.iam.subscribed@ximian.com
Tue, 13 Jul 2004 11:51:52 +0200


El mar, 13-07-2004 a las 01:26, Harobed escribió:
> Hello, 
> 
> This code get web page from "https://" URL.
> When I start this code, I've this error :
> 
> Unhandled Exception: System.Net.WebException: Error getting response
> stream: ReceiveFailure ---> System.ObjectDisposedException: The object
> was used after being disposed.
> in <0x00036> Mono.Security.Protocol.Tls.SslClientStream:checkDisposed ()
> in <0x0004f> (wrapper remoting-invoke-with-check)
> Mono.Security.Protocol.Tls.SslClientStream:checkDisposed ()
> in <0x0004d> Mono.Security.Protocol.Tls.SslClientStream:BeginRead
> (byte[],int,int,System.AsyncCallback,object)
> in <0x0007e> System.Net.WebConnection:InitRead (object)
> --- End of inner exception stack trace ---
>  
> in <0x0006e> System.Net.HttpWebRequest:CheckFinalStatus
> (System.Net.WebAsyncResult)
> in <0x00065> (wrapper remoting-invoke-with-check)
> System.Net.HttpWebRequest:CheckFinalStatus (System.Net.WebAsyncResult)
> in <0x001b7> System.Net.HttpWebRequest:EndGetResponse
> (System.IAsyncResult)
> in <0x0006d> System.Net.HttpWebRequest:GetResponse ()
> in <0x000d9> Prog:Main (string[])
> 
> It's one bug, or my code is bad ?

Your code is wrong.

http://www.eggheadcafe.com/forums/ForumPost.asp?ID=11272&INTID=18

...and google is your friend ;-).

-Gonzalo