problem Windows service calling static method

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • samdediacre
    New Member
    • Mar 2008
    • 1

    problem Windows service calling static method

    Hi all,
    I have developped a very simple Windows service that references a managed .NET dll.
    the code within the dll contains a static class to read/write data from registry.
    So the OnStart() method of the service simply calls the dll to read info from registry, but the static method reading info fails to execute...

    the dll tested within a console or winform application works fine (i can call the static class and get the info i want)
    So i assume im facing issues with the Windows service using the static class within the dll...

    Has anyone ever heard of windows service calling static methods??

    Any help would be much appreciated.
    Regards.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    How do you know it failed?
    Did you get any error messages?
    Is your service running under the correct user permissions to access the registry?

    Comment

    Working...