Creating new custom service in C#



  • Hi All,

    I followed the wiki at http://www.fogproject.org/wiki/index.php/Creating_Custom_FOG_Service_Modules but I used Visual Express 2010. I did need to add a reference to get rid of a not found error on the line
    using system.data;

    I could compile to a dll without other errors and I have put the resulting .dll in my \program files\FOG folder. But I didn’t get any lines from my new .dll in my \fog.log file after restarting the FOG service. I tried the debug version and the release version and also changed the Net version to 3.5 (from NET 4.0 client). No changes.

    Never used C# much, I’m more a Python adept, so I might be missing something obvious…

    Any pointers of tips how to debug this situation? I just used the boilerplate and only changed the modulename, see attachment.

    Greetings,
    Nico (new FOG user)

    SLF.txt



  • Never mind, it’s working now. Restarting the Fog service isn’t enough. After rebooting the service is active. Note that the source of all services is included, with Visual 2008 project files, in the tarball at fog_0.32\FOG Service\src


Log in to reply
 

420
Online

38722
Users

10550
Topics

99863
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.