Windows Service Start-error (1053)

Hi,

I have a windows service that has been working perfectly, but now it won't start. I'm getting a 1053 error reading:

"The WinTasks7 service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion."

I've tried running it as administrator and I've even commented out any work the service is supposed to do..

Protected Overrides OnStart(ByVal args() as string)

'bgTasks.RunWorkerAsync()

End Sub

Still no juice..

Tracing the .exe file in process monitor I noticed that the service is trying to access some non-existsing registry keys..

- NAME NOT FOUND: HKU\.DEFAULT\Software\Microsoft\.NETFramework

- NAME NOT FOUND: HKLM\SOFTWARE\Microsoft\.NETFramework\GCStressStart

- NAME NOT FOUND: HKLM\SOFTWARE\Microsoft\.NETFramework\GCStressStartAtJit

- NAME NOT FOUND: HKLM\SOFTWARE\Microsoft\.NETFramework\DisableConfigCache

- NO MORE ENTRIES: HKLM\SOFTWARE\Microsoft\.NETFramework

Does this make any sense to anyone?
[1166 byte] By [Jorno] at [2008-1-10]
# 1
Hi Jorno,

Try to debug your service, as described in the following article:
[How to debug Windows services]
http://support.microsoft.com/kb/824344

I hope this helps!
-Rajneesh

www.ComponentOne.com

RajneeshNarain at 2007-10-3 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2
Strange problem indeed. The registry keys are normal, just the CLR looking for optional configuration. You should try this on another PC to ensure this isn't caused by a machine issue. Set the AutoLog property to true in the constructor, that will leave breadcrumbs in the Application Event Log.
nobugz at 2007-10-3 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 3

We are changing the issue type to “Comment” because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question” by editing your initial post and changing the radio button at the top of the post editor window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

Thank you!

RiquelDong–MSFT at 2007-10-3 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 4

We are changing the issue type to “Comment” because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question” by editing your initial post and changing the radio button at the top of the post editor window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

Thank you!

RiquelDong–MSFT at 2007-10-3 > top of Msdn Tech,Visual Basic,Visual Basic Language...