473,387 Members | 1,798 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,387 software developers and data experts.

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 1664
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*@YOUKNOWTHEDRILLmtogden.com> wrote in message
news:uN**************@tk2msftngp13.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_lunchmeat_[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
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? ...
2
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...
9
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...
0
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...
6
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...
1
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...
5
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...
5
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?...
4
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...
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:
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.