[Mono-bugs] [Bug 70428][Nor] New - Problem with object disposed
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 10 Dec 2004 11:37:58 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by ariel@gnu.org.
http://bugzilla.ximian.com/show_bug.cgi?id=70428
--- shadow/70428 2004-12-10 11:37:58.000000000 -0500
+++ shadow/70428.tmp.4516 2004-12-10 11:37:58.000000000 -0500
@@ -0,0 +1,95 @@
+Bug#: 70428
+Product: Mono: Runtime
+Version: 1.1
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: ariel@gnu.org
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Problem with object disposed
+
+I am using a library called DotMSN.dll
+
+http://members.home.nl/b.geertsema/dotMSN/index.html#download
+
+Running the following code on mono
+
+using DotMSN;
+
+//change account for a real hotmail account
+//change the password for password
+
+public class Test {
+ public static void Main (){
+ try {
+ Messenger messenger = new Messenger();
+ messenger.Connect("account@hotmail.com", "thepassword");
+
+ System.Console.WriteLine ("hello world");
+ }catch(MSNException e){
+ System.Console.WriteLine ("Connecting failed: " + e.ToString());
+ }
+ }}
+
+gives the following:
+ mono msn1.exe
+Connecting failed: DotMSN.MSNException: Authenticating with passport.com
+failed : 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 <0x00067> DotMSN.Messenger:AuthenticatePassport (string)
+ ---> 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 <0x00067> DotMSN.Messenger:AuthenticatePassport (string)
+--- End of inner exception stack trace ---
+
+in <0x00307> DotMSN.Messenger:AuthenticatePassport (string)
+in <0x00696> DotMSN.Messenger:DoConnect ()
+in <0x0001d> DotMSN.Messenger:Connect (DotMSN.Connection,DotMSN.Owner)
+in <0x00067> DotMSN.Messenger:Connect (string,string)
+in <0x0004b> Test:Main ()
+
+Might be related to bug 70312. This happens both in Windows running 1.0.4
+and 1.1.2 monos and Linux under 1.02.
+
+The assembly generated my mcs works as expected using Mircosft Framework 1.1
+
+ariel