473,761 Members | 7,290 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows Service not Starting with Windows

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 hitch. The Service is installed and marked
for Automatic startup, but the service is not starting with windows. If i
reboot and then check the services, the service shows as Stopped, but still
marked Automatic.

Any idea?

The service runs under the LocalSystem account.

Nov 21 '05 #1
3 1695
In article <u#************ *@tk2msftngp13. phx.gbl>, Johnny Fugazzi wrote:
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 hitch. The Service is installed and marked
for Automatic startup, but the service is not starting with windows. If i
reboot and then check the services, the service shows as Stopped, but still
marked Automatic.

Any idea?

The service runs under the LocalSystem account.


Can you start the service manually?

--
Tom Shelton [MVP]
Nov 21 '05 #2
Yup. The service will start if I open it up and hit Start. Would like it
to start with the computer however.... The computer it is on may get
restarted from time to time due to power loss, etc...
"Tom Shelton" <to*@YOUKNOWTHE DRILLmtogden.co m> wrote in message
news:uN******** ******@tk2msftn gp13.phx.gbl...
In article <u#************ *@tk2msftngp13. phx.gbl>, Johnny Fugazzi wrote:
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 hitch. The Service is installed and marked
for Automatic startup, but the service is not starting with windows. If
i
reboot and then check the services, the service shows as Stopped, but
still
marked Automatic.

Any idea?

The service runs under the LocalSystem account.


Can you start the service manually?

--
Tom Shelton [MVP]

Nov 21 '05 #3
On Thu, 23 Sep 2004 15:36:35 -0500, Johnny Fugazzi wrote:
Yup. The service will start if I open it up and hit Start. Would like it
to start with the computer however.... The computer it is on may get
restarted from time to time due to power loss, etc...


The service runs under the LocalSystem account.


When the service starts with Windows, it runs under the LocalSystem
account. When you start it manually, it runs under your account.

Right click on the service and hit properties. Then look at the LogOn tab
and setting your service to start using your credentials. If that works,
then it might indicate that your service needs permissions to do things
that the LocalSystem account cannot.

Also, check the application and system event logs for error messages. That
may also give you a clue as to why the service is stopping.

--
Chris

dunawayc[AT]sbcglobal_lunch meat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #4

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

Similar topics

6
3429
by: Laszlo Zsolt Nagy | last post by:
Sorry, I realized that the import zlib was not executed from my (working) service. So here is the question: why can't I use zlib from a win32 service? Is there any way to make it working? >------------- >Python could not import the service's module > File "T:\Python\Projects\NamedConnector\Service.py", line 17, in ? > from Processor import * > File "c:\Python\Projects\NamedConnector\Processor.py", line 35, in ?
2
2229
by: Razzie | last post by:
Hey all, I wrote a Windows Service. When I test it on my developement machine (winXP) it works fine. It starts ok, never crashes, etc. When I install the service on another machine (win2000) it *sometimes* crashes upon starting. The progressbar you get when you manually start the server will very slowly progress, and when it hits 100% after 2 minutes or something I get the error 'The service could not be started because it did not...
9
7272
by: SP | last post by:
Hi All, I wrote a windows service which is supposed to stop after specified amount of time. I am calling OnStop() after specified time. OnStop() methods executed but I dont see the service stopping. Please advise how to stop the service. Thanks, SP
0
2813
by: tshad | last post by:
I have a Windows Service I created that just sets a timer and writes to EventLog every 10 seconds. It installed fine and it actually starts. But it says it doesn't. The progress bar shows the progress fine until it hits about halfway. It then stops there for about 4 or 5 seconds then goes a little farther. I then get a message: Could not start the MyService Service on Local Computer. Error 1053: The service did not respond to the...
6
8693
by: Joe | last post by:
C# .NET 2.0 I've got a Windows Service that works exactly as I expect it to. However, it does rely on a few Configuration settings. If the customer doesn't configure it correctly, the service shouldn't start. So I've put in some try...catchs, but what I'm not sure how to do is not allow the service to start. If attempted to start with the NET START command, throwing an exception keeps the service from starting, but the message...
1
6568
by: =?Utf-8?B?cm9zczYxMw==?= | last post by:
I'm puzzled by an error message encountered while creating a Windows Service. In particular, I'm creating a second Windows Service within a Windows Service project, using Visual Studio 2005. The first service works fine. The second service appears to be registered correctly; yet I get the "System error 1083 has occurred." doing a "NET START ServiceName" in the DOS window along with: "The executable program that this service is...
5
4723
by: eliasen | last post by:
Hi I have created a Windows Service using C# and .NET2.0. The service is quite simple - right now it doesn't do anything except throwing an exception in the OnStart method. It used to something more, but I couldn't get it working, so I boiled it down to the exception to test. Anyway, the service can be installed using InstalUtil but when starting the service, I just get the message that the service stopped again withour reporting any...
5
3307
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name? Why do I need to set a property within my code to the service name? Are all these required or am I just doing this for consistency purposes?
4
9694
by: =?Utf-8?B?am1hZ2FyYW0=?= | last post by:
I've written a .net Windows service in C#. It works most of the time for most people. It is configured to automatically start when Windows boots. Sometimes it fails to start on Windows XP during boot. All I know is that it is timing out. But no useful details appear in the event log, not even my first EventLog message in OnStart. How can I figure out why it isn't starting? How can I fix this? My ServiceBase constructor just sets a few...
0
9531
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9345
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10115
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9957
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9775
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7332
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5373
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3881
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3456
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.