[Mono-bugs] [Bug 78178][Nor] New - The Response object in
WebException is being disposed prematurely.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Apr 24 14:22:16 EDT 2006
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 rlyon at novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78178
--- shadow/78178 2006-04-24 14:22:16.000000000 -0400
+++ shadow/78178.tmp.8683 2006-04-24 14:22:16.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 78178
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com
+ReportedBy: rlyon at novell.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc: ifolder.guy at gmail.com,jpallen at novell.com
+Summary: The Response object in WebException is being disposed prematurely.
+
+Description of Problem:
+
+The Response object in WebException is being disposed prematurely.
+
+Steps to reproduce the problem:
+1. Make a SOAP call that will return a WebException 401 Unauthorized.
+2. Catch the "exception" and get the http status code (HttpStatusCode
+code = (HttpStatusCode) (exception.Response as
+HttpWebResponse).StatusCode;)
+
+Actual Results:
+
+System.ObjectDisposedException: The object was used after being disposed.
+in <0x00044> System.Net.HttpWebResponse:CheckDisposed ()
+in <0x0000a> System.Net.HttpWebResponse:get_StatusCode ()
+in (wrapper remoting-invoke-with-check)
+System.Net.HttpWebResponse:get_StatusCode ()
+in <0x000f5> Novell.iFolderApp.Web.Login:HandleException
+(System.Net.WebException e)
+
+Expected Results:
+The Response object should still be around.
+
+How often does this happen?
+always
+
+Additional Information:
+The problem does not manifest itself in 1.1.7, but I have seen it in
+everything afterwards. I need this fixed in 1.1.13.
More information about the mono-bugs
mailing list