.NET Windows Service Start Failure

  • Thread starter Thread starter Rick Mavrovik
  • Start date Start date
R

Rick Mavrovik

Hi,
I am following every step to the letter mentioned in the various articles on
writing and debugging .NET
service. But when i start debugging the service i get this error (pasted
below), although the service has been successfully installed and started.
What could be causing this??
Please help!!
-Rick
 
I forgot to mention....
the service does run but this error stops the debugger so i am not able to
debug the service..
 
Did you start the debugger using F5 (Debug) ? Instead, try starting the
service through Control Panel->Services and then attach the debugger to the
process.

Good luck.

Paul Wardle
 
I installed the service using InstallUtil

then started the service using the Control Panel>Services

and then after setting the breakpoint and attaching the process, pressed
F5... the strange thing is that it does not give the error immidiately
rather after the Timer1_Elapsed has fired, it prompts that 'Cannot start
service from the command line or a debugger.........'
 
Back
Top