473,378 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Windows service automatic

Tom
Hi

I've created a windows service and it is set to run under local system
account. But after its installed and after reboot when I check in the
services its still sitting there and have not automatically started ?
but next to it the start mode does say 'automatic' instead of manual.

so how I get it to start after every reboot ?

Thanks
Tom
Jul 21 '05 #1
4 1870
JV
Never had this problem with any Windows service I've written.
Check whether you have a bug in the service's startup code that is causing a
crash, perhaps?

"Tom" <to********@optushome.com.au> wrote > Hi

I've created a windows service and it is set to run under local system
account. But after its installed and after reboot when I check in the
services its still sitting there and have not automatically started ? but
next to it the start mode does say 'automatic' instead of manual.

so how I get it to start after every reboot ?

Thanks
Tom

Jul 21 '05 #2
Tom
JV wrote:
Never had this problem with any Windows service I've written.
Check whether you have a bug in the service's startup code that is causing a
crash, perhaps?

"Tom" <to********@optushome.com.au> wrote > Hi
I've created a windows service and it is set to run under local system
account. But after its installed and after reboot when I check in the
services its still sitting there and have not automatically started ? but
next to it the start mode does say 'automatic' instead of manual.

so how I get it to start after every reboot ?

Thanks
Tom


there is no bug I checked in the event log and also when I manually
start it starts fine....

Thanks
Tom
Jul 21 '05 #3
I know it's been a while but I had a hard time with this one myself...
You can find some suggestions on the net that it may have something to do
with service dependencies, especially with the Eventlog service. In my case
problem was all about NET performance during system startup. You have to
create (or modify existing) registry DWORD value "ServicesPipeTimeout" in
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contr ol" - I set it to 60000
(in miliseconds) and my service autostarts fine. Infuriatingly simple:-/

Jan
Hi

I've created a windows service and it is set to run under local system
account. But after its installed and after reboot when I check in the
services its still sitting there and have not automatically started ?
but next to it the start mode does say 'automatic' instead of manual.

so how I get it to start after every reboot ?

Thanks
Tom

Jul 21 '05 #4
Hi,

I remember that thread, but never understood what happens.
I will start writing a service in the near future and thanks for
that good pointer!!!

Best regards,
Manfred Braun

(Private)
Mannheim
Germany

mailto:_m*************@manfbraun.de
(Remove the anti-spam-underscore to mail me!)

"Jan Waga" <jw***@sim.com.pl> wrote in message
news:Ow**************@tk2msftngp13.phx.gbl...
I know it's been a while but I had a hard time with this one myself...
You can find some suggestions on the net that it may have something to do
with service dependencies, especially with the Eventlog service. In my case problem was all about NET performance during system startup. You have to
create (or modify existing) registry DWORD value "ServicesPipeTimeout" in
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contr ol" - I set it to 60000
(in miliseconds) and my service autostarts fine. Infuriatingly simple:-/

Jan
Hi

I've created a windows service and it is set to run under local system
account. But after its installed and after reboot when I check in the
services its still sitting there and have not automatically started ?
but next to it the start mode does say 'automatic' instead of manual.

so how I get it to start after every reboot ?

Thanks
Tom


Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Artur Kowalski | last post by:
I have a NotifyIcon in my Windows Service project and I am trying to add a ContextMenu to this NotifyIcon or use some of the mouse events. Everything isn't working. I think so base class of the...
2
by: Mark | last post by:
I created an extremely simple windows service that only writes to the EventLogs on Stop and Pause. I installed it using the InstallUtil.exe program, the output of which is below. It appears to be...
1
by: RK | last post by:
Hi Is there any way can we start the windows service after installation without the need for starting the service manually. I have StartType property set to "Automatic" for the service, but that...
3
by: Johnny Fugazzi | last post by:
OK, I created my handy little windows service and created an MSI installer using the Deployment tool in VS.net with Custom Actions according to the msdn help. Worked great, with one little...
3
by: Amjad | last post by:
Hi, I just wrote a test Windows Service that creates a text file on startup (please see my code below). The file is never created. Protected Overrides Sub OnStart(ByVal args() As String) Dim...
4
by: microsoft.public.dotnet.framework.performance | last post by:
All, Have any of you seen a thread created and Thread.Start() called without error, but then the thread is seemingly never actually started? I have a class defined in a VB.NET 2003 Windows...
4
by: Blaxer | last post by:
I have read approximately 30 articles now on various methods to make your vb.net application automatically update itself and I can't see how they apply to a vb.net windows services projects. The...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
6
by: =?Utf-8?B?QW5kcmV3?= | last post by:
Hi, I've created a windows application C# service according to: http://msdn2.microsoft.com/en-us/library/ms123402.aspx?wa=wsignin1.0 But my service is not appearing in the computer management...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.