[Mono-dev] run Windows Service with Mono on Windows?

Petit Eric surfzoid at gmail.com
Thu Jun 11 08:13:59 EDT 2009


2009/6/11 Alexey Chernobaev <axch at mail.ru>:
>
> Thank you for answer, Eric!
>
> Probably not as I understand. I've tried and got this:
>
>  >mono-service ControlService.exe
>
> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown
>  by the type initializer for Mono.Unix.Native.Syscall --->
> System.EntryPointNotF
> oundException: Mono_Posix_Syscall_L_ctermid
>  at (wrapper managed-to-native) Mono.Unix.Native.Syscall:_L_ctermid ()
>  at Mono.Unix.Native.Syscall..cctor () [0x00000]
>  --- End of inner exception stack trace ---
>  at MonoServiceRunner.Main (System.String[] args) [0x00000]
did you check before if it run with recent mono version (linux)
what is your mono version
what moma say about the "ControlService.exe"
Are you sur there isn't any PInvoke of native windows API
"ControlService.exe" is the Windows service you have developped (.Net
Assembly) ?
>
>
> Petit Eric wrote:
>> 2009/6/10 AlexCh <axch at mail.ru>:
>>
>>> Hi, all!
>>>
>>> Is it possible to run .Net-based Windows Service (service class derived from
>>> System.ServiceProcess.ServiceBase) with Mono on Windows, e.g. if Framework
>>> is not installed?
>>>
>> I think yes, but the best way is to try, so simply "clone" the
>> existing Mono batch who set environment, or run a mono shell, then go
>> in the direcrtory where you have MyService.exe and do a "mono-service
>> myservice.exe" :-)
>>
>>> --
>>> View this message in context: http://www.nabble.com/run-Windows-Service-with-Mono-on-Windows--tp23964551p23964551.html
>>> Sent from the Mono - Dev mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> Mono-devel-list mailing list
>>> Mono-devel-list at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



-- 

Cordially.

Small Eric Quotations of the days:
---------------------------------------------------------------------------
If one day one reproaches you that your work is not a work of
professional, say you that:
Amateurs built the arch of Noah, and professionals the Titanic.
---------------------------------------------------------------------------

Few people are done for independence, it is the privilege of the powerful ones.
---------------------------------------------------------------------------

No key was wounded during the drafting of this message.


More information about the Mono-devel-list mailing list