473,499 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1875
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
5651
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
21853
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
12767
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
1667
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
14848
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
1166
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
5564
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
4153
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
239
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...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7395
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3108
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.