Mono service on windows

I inherited an application that uses mono that starts a windows service. All the original developers have disappeared. The production version uses mono on linux. I am trying to start a development environment. I decided to use windows as the base platform that mono on top runs on. This may not be the best idea given my current problem, but I would like to try and understand the problem before moving the environment to Linux.

The problem is that I cannot start the mono service. I can get small winforms apps to work using mono. My problem is similar to the previous question with the answer. using mono service to port Windows service to Linux However, I cannot translate the answer on what to do in Windows environment. I'm sure I have a problem loading the dll.

Unhandled Exception: System.TypeInitializationException: Exception thrown with type initializer for Mono.Unix.Native.Syscall ---> System.EntryPointNotF oundException: Mono_Posix_Syscall_L_ctermid at (ad-hoc wrapper): _No.Unixter at Mono.Unix.Native.Syscall..cctor () [0x00000] --- End of internal check of the exception stack --- at MonoServiceRunner.Main (System.String [] args) [0x00000]

I added monodevelop environment variables and set to "all" and had a log file. The text will not log. And I cannot get more information on what is posted above. Can someone point me in the right direction.

+2


source to share


1 answer


I think mono service only works on Linux. On Windows, you can just do what you normally do to install / start a .Net service using ServiceBase. The point of mono service is emulating Windows behavior in Linux.



+4


source







All Articles