Hello, I have created and installed a Windows service on my local computer. (I am running Windows XP SP2.) This service is set to run under the local system account. However, when I attempt to start the service I get a "System.ArguementException" error message. Because the service didn't start, I am unable to attach the debugger to the process. I don't know what is wromg with the project because it compiles fine and I am not able to step through the code. Has anyone else had this problem? Thanks in advance for your help, Paul
Paul Daly (MCP) wrote: > Hello, > > I have created and installed a Windows service on my local computer. (I am > running Windows XP SP2.) This service is set to run under the local system > account. However, when I attempt to start the service I get a > "System.ArguementException" error message. Because the service didn't start, > I am unable to attach the debugger to the process. I don't know what is > wromg with the project because it compiles fine and I am not able to step > through the code. > > Has anyone else had this problem? > > Thanks in advance for your help, > > Paul Generally some library or system call you make in your startup code throws the exception you see. Carefully protect all service code with try-catch, and provide some type of logging for where the error occurs. You want this even after you get it initially debugged. HTH - Lee