[Mono-bugs] [Bug 78621][Min] New - Embedding XSP in an application throws exception on Start - Stop - Start

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jun 14 18:52:26 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 gonzalo at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78621

--- shadow/78621	2006-06-14 18:52:26.000000000 -0400
+++ shadow/78621.tmp.19013	2006-06-14 18:52:26.000000000 -0400
@@ -0,0 +1,71 @@
+Bug#: 78621
+Product: Mono: Tools
+Version: unspecified
+OS: unknown
+OS Details: Ubuntu 6.06 Dapper Drake
+Status: RESOLVED   
+Resolution: FIXED
+Severity: Unknown
+Priority: Minor
+Component: XSP
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: mark.northcott at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Embedding XSP in an application throws exception on Start - Stop - Start
+
+Description of Problem:
+
+When embedding the XSP server into an application, using
+Mono.WebServer.dll, attempting to restart an instance of ApplicationServer
+(same instance has previously been started and stopped), throws an
+InvalidOperationException, saying that the server has already been started.
+
+Steps to reproduce the problem:
+1. Create an instance of ApplicationServer within an application
+2. Start the server
+3. Stop the server
+4. Start the server again
+
+Actual Results:
+
+InvalidOperationException thrown with message 'The server is already started'.
+
+Expected Results:
+
+The server is restarted and ready to handle requests.
+
+How often does this happen? 
+
+Everytime.
+
+Additional Information:
+
+I have verified this against xsp 1.0.5-1 (mono-xsp-1.1.10-0ubuntu2) as well
+as xsp in subversion trunk.
+
+Looking at the source code in svn trunk, the problem is that the started
+flag is not set to false once the server is stopped, and thus when
+restarting the server, the check to see if the server is currently running
+returns true, even though the server has been stopped.
+
+I will attach a test case that illustrates the problem. The test can be
+compiled with:
+
+mcs /r:Mono.WebServer.dll Main.cs
+
+and run with
+
+mono Main.exe
+
+------- Additional Comments From mark.northcott at gmail.com  2006-06-10 16:54 -------
+Created an attachment (id=17163)
+Test case to illustrate exception thrown when embedded server is restarted
+
+
+------- Additional Comments From gonzalo at ximian.com  2006-06-14 18:52 -------
+Fixed in svn.
+Thanks.
+


More information about the mono-bugs mailing list