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?

>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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.