views:

39

answers:

2

I have a windows service written in C#, .Net framework 2.0. I installed it on three machines and it worked fine but on one machine (with .Net framework 2.0) the setup has installed the service successfully but the service is not responding after I start it. I check for this by checking whether a log file is created at a specific path insribed in the config file or not. This log file is created everytime the timer elapses the interval time. I'm unable to figure out the reason. Have checked all the parameters but unable to get any solution to this.

The funny thing is that the same setup is running well on other machines.

P.S.: I have admin access on all the servers I'm installing this service on.

A: 

Can you get VS on the machine? Even the express edition would probably be fine. In the service's Initialization function you can call debugger.launch. This should get you in.

Steve
difficult to get VS on that machine.... that is the issue... Will give it a shot though.. but anything else that u can think of?
Ridhi
You can also do remote debugging and attach to the process, but thats always a bit of a pain in a corporate environment. At least depending on how tough your systems people are.
Steve
A: 

This kind of thing is almost always a permissions issue with the user account the service is running under. Quick way to check this is to make the service account a local machine admin and see if it works. If it does, you need to figure out what permissions the service account you are supposed to use is missing.

Tom Cabanski
I am running it under local machine admin itself but still not working... and difficult to get VS on that machine.... that is the issue... Will give it a shot though.. but anything else that u can think of?
Ridhi