473,385 Members | 1,309 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,385 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 1663
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
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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...

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.