954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Windows Service won't auto start

I've written a C# Windows Service that won't auto start. Nothing in the Event Log as to why it doesn't fire up. The code relies on libraries in a .NET 2.0 assembly component .dll. This dll is in the same directory as the service .exe. If I remove references to this component, it will auto start (but of course I lose my functionality).

What's the best place to keep my .exe and .dll?
How can I best troubleshoot to find exactly why it won't auto start?
Any idea's on how to get it to auto start?

jpcarter1
Newbie Poster
3 posts since Aug 2009
Reputation Points: 10
Solved Threads: 0
 

>How can I best troubleshoot to find exactly why it won't auto start?

Maybe it is that a dependency did not start correctly.

>What's the best place to keep my .exe and .dll?

I think you have a deployment issue. Please refer these documents:

1. http://msdn.microsoft.com/en-us/library/d56de412.aspx
2. http://www.codeproject.com/KB/tips/EasyDebugWindowsServices.aspx
3. http://www.codeproject.com/KB/dotnet/simplewindowsservice.aspx?msg=3236525

__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: