Error in windows service
-
-
hi , i installed windows service in using installutil ,installing is succesfull. But the service is giving error while starting ... it is giving internal windows error or internal service error can any one tell me how to rectify error .. Thanks suman
Build stable code and log exceptions to the eventlog (yes you've got one for free with your windowsservice ;) ) Debuging a windows service is .... not nice so you better test your code before integrating it into a windows service. Most errors are written to the system event log of your OS anyway so maybe have a look at those and try to find more information there. A common problem is that a windows service runs normaly on special accounts that don't have all those fancy permisions you are used to while coding as admin ;) - for example file access might be forbidden - you can test this by running the service in an administrator account (of course only for test reasons :-\ )