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 / Languages / C# / December 2007

Tip: Looking for answers? Try searching our database.

Windows Service unable to start at sytem restart!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yasir Zaheer - 14 Dec 2007 06:59 GMT
I have made a windows service which is configured to start
automatically at the system startup under the USER account type. The
service is working perfectly fine when I try to start it manually, but
it is unable to start automatically at system restart and following
errors are displayed in the Event Logs.

1 - Timeout (30000 milliseconds) waiting for the (Service Name)
service to connect.
2 - The (Service Name) 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 also have also tried to write log entries in 'OnStart()' and Main
methods but the logs are also not displayed.
Does it indicate that it requires user credentials within 30 seconds?

I am using C# with .NET framework 2.0. I have tried to run the service
on Windows XP Pro and Windows Server 2003.

Regards,
Stephany Young - 14 Dec 2007 08:22 GMT
Talk to Maqssood Ahmed.

He has an identical problem.

>I have made a windows service which is configured to start
> automatically at the system startup under the USER account type. The
[quoted text clipped - 16 lines]
>
> Regards,
Yasir Zaheer - 14 Dec 2007 10:25 GMT
If we both have the same problem how are we gonna solve it via
discussion?

> Talk to Maqssood Ahmed.
>
[quoted text clipped - 22 lines]
>
> - Show quoted text -
Jon Skeet [C# MVP] - 14 Dec 2007 10:52 GMT
> If we both have the same problem how are we gonna solve it via
> discussion?

It was a subtle hint that posting exactly the same question under two
different names isn't going to solve your problem any faster.

Jon
Yasir Zaheer - 14 Dec 2007 13:11 GMT
Thanks John for the hint.... but do you people have any solution for
that.. is yes please let me know!
regards,
Yasir Zaheer

> > If we both have the same problem how are we gonna solve it via
> > discussion?
[quoted text clipped - 3 lines]
>
> Jon
Nicholas Paldino [.NET/C# MVP] - 14 Dec 2007 18:24 GMT
Are you trying to interact with the desktop in any way?

   If the service runs while you are logged in, my assumption would be
"yes".  When you start the machine up, there is no interactive login
session, and if you are trying to do something with the desktop when you
start, then it's going to fail, since no one is logged in.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

>I have made a windows service which is configured to start
> automatically at the system startup under the USER account type. The
[quoted text clipped - 16 lines]
>
> Regards,
christery@gmail.com - 15 Dec 2007 09:41 GMT
Any UI going on? supported in XP, but not in Vista as I belive...

in XP might try "Interact with desktop", might try a sleep in the
beginning of startup just to get it working

//CY
Yasir Zaheer - 16 Dec 2007 07:19 GMT
No Nicholas.... I am not trying to interact with the desktop!

Actually desktop interaction is only possible if I run it under "Local
System" Account. As i told you i am running under specific "User"
account.

thanks for your interest,
Regards,

Yasir Zaheer!

On Dec 14, 11:24 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:
>     Are you trying to interact with the desktop in any way?
>
[quoted text clipped - 27 lines]
>
> > Regards,
christery@gmail.com - 16 Dec 2007 11:49 GMT
Dont know if it will help but I got some help from service loader/
runner from http://theimes.com

//CY
Yasir Zaheer - 26 Dec 2007 10:00 GMT
Thanks christ,

but this loader/runner just do nothing else than provide the
functionalities service controller provides.

Regards,

On Dec 16, 4:49 pm, christ...@gmail.com wrote:
> Dont know if it will help but I got some help from service loader/
> runner fromhttp://theimes.com
>
> //CY

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.