Windows Service will not run on Windows 2003 Server

Hi,

I have developed a Windows Service that installs and runs fine on my XP (Pro) machine.

When I install and try to run it on a Windows 2003 Server machine, it installs but does not run . Here is the eventlog entry:

EventType clr20r3, P1 MyService.exe, P2 1.0.0.0, P3 452baa7e, P4 system.windows.forms, P5 2.0.0.0, P6 4333aefa, P7 3d21, P8 ee, P9 system.invalidoperationexception, P10 NIL.

May I also add that there are no references to System.Windows.Forms in my service.

Any help is much appreciated.


Answer this question

Windows Service will not run on Windows 2003 Server

  • pierreg

    Does your service reference a component assembly installed on the XP box but not on the server


  • Mohamed Shifaz

    Thanks, that was the problem exactly.

  • PhilCanavan

    You might still be referencing System.Windows.Forms indirectly. For instance, Microsoft.VisualBasic does reference System.Windows.Forms (for Interaction.MsgBox, among others, I guess).

    HTH
    --mc


  • Windows Service will not run on Windows 2003 Server