[Mono-bugs] [Bug 79207][Nor] Changed - Recent changes in AppDomain loading affect mono-service

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 29 14:18:33 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 miguel at ximian.com.

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

--- shadow/79207	2006-08-29 12:27:01.000000000 -0400
+++ shadow/79207.tmp.1657	2006-08-29 14:18:33.000000000 -0400
@@ -58,6 +58,39 @@
 Hotfix: copy mono-service.exe into the service's
 current directory.
 
 Long term fix: outsource MonoServiceRunner onto an Assembly
 that gets installed into the GC.
 
+
+------- Additional Comments From miguel at ximian.com  2006-08-29 14:18 -------
+Am trying with this:
+
+using System.ServiceProcess;
+using System;
+
+class X :ServiceBase{
+        static void Main ()
+        {
+                Console.WriteLine ("Hello!");
+                System.ServiceProcess.ServiceBase.Run (new X());
+        }
+
+         protected override void OnStart(string[] args)
+        {
+                Console.WriteLine ("Startin");
+        }
+}
+
+I compile this, and then type:
+
+mono-service a.exe
+
+And I do get the message on the console, and the syslog:
+Aug 29 13:18:46 erandi mono: /tmp/a.exe: Service  started
+
+I tried moving a.exe to another directory, and it still works:
+
+mono-service /tmp/a.exe
+
+
+


More information about the mono-bugs mailing list