[Mono-bugs] [Bug 341561] Mono.WebServer.ApplicationServer ' s Stop method generates exception on Windows.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 19 03:58:24 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=341561#c7





--- Comment #7 from Ashok Singh <siashok at novell.com>  2007-11-19 01:58:23 MST ---
Created an attachment (id=183856)
 --> (https://bugzilla.novell.com/attachment.cgi?id=183856)
Source code and required .dlls to reproduce this issue.

The attachment contains source code to reproduce this issue. It also contains
dependent DLLs to compile and run the source code. The dependent dlls are
Mono.WebServer.dll and Mono.Security.dll

When I compiled the code using MS Visual Studio 2003 and ran on MS .NET 1.1, I
get the following output( ie., same objectdisposed exception )

D:\MonoIssue\MonoIssue\bin\Debug>MonoIssue.exe
Enter some string...
adf

Unhandled Exception: System.InvalidOperationException: AcceptCallback --->
Syste
m.ObjectDisposedException: Cannot access a disposed object named
"System.Net.Soc
kets.Socket".
Object name: "System.Net.Sockets.Socket".
   at System.Net.Sockets.Socket.BeginAccept(AsyncCallback callback, Object
state
)
   at Mono.WebServer.ApplicationServer.OnAccept(IAsyncResult ares)
   at System.Net.Sockets.AcceptAsyncResult.AcceptCallback(Object stateObject,
Bo
olean Signaled)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.AcceptAsyncResult.AcceptCallback(Object stateObject,
Bo
olean Signaled)

When I compiled the code using MS Visual Studio 2003 and ran on MS .NET 2.0, I
get the same exception. The details of this exception is already attached in
the form of screenshot.

In both( MS .NET 1.1 and 2.0 ) the cases, 

--I get the same exception. 
--Exception cannot be caught by the program
--The difference is for 1.1, I don't get the Popup window for exception, but
for 2.0 I get a popup window(screenshot attached). What I infer from this is
the MS .NET 2.0 runtime is able to catch this exception while 1.1 is not able
to do so.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list