Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2007

Tip: Looking for answers? Try searching our database.

.NET Windows Service Start Failure

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rick Mavrovik - 19 Jun 2007 14:26 GMT
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

---------------------------
Windows Service Start Failure
---------------------------
Cannot start service from the command line or a debugger.  A Windows Service
must first be installed (using installutil.exe) and then started with the
ServerExplorer, Windows Services Administrative tool or the NET START
command.
---------------------------
OK
---------------------------
Rick Mavrovik - 19 Jun 2007 17:16 GMT
I forgot to mention....
the service does run but this error stops the debugger so i am not able to
debug the service..

> Hi,
> I am following every step to the letter mentioned in the various articles
[quoted text clipped - 15 lines]
> OK
> ---------------------------
Paul Wardle - 19 Jun 2007 17:45 GMT
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 forgot to mention....
> the service does run but this error stops the debugger so i am not able to
[quoted text clipped - 19 lines]
>> OK
>> ---------------------------
Rick Mavrovik - 20 Jun 2007 10:06 GMT
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.........'

> Did you start the debugger using F5 (Debug) ? Instead, try starting the
> service through Control Panel->Services and then attach the debugger to
[quoted text clipped - 27 lines]
>>> OK
>>> ---------------------------

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.