473,378 Members | 1,218 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 does not start

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 successful. I'm
now ready to start my service (I think) but the NET START command does not
appear to indicate that the service is available to be run. The output for
NET START is below as well. The Services list in the W2K administrator
tools does not display the service either. The name of my service was set
by VS.NET in the InitializeComponent method as ...

this.ServiceName = "cDcdMain";

How exactly do I start my service? Thanks in advance.

mark

*** DOS OUTPUT BELOW ***

C:\Temp\test>InstallUtil.exe MyService.exe

Microsoft (R) .NET Framework Installation utility Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the c:\temp\test\MyService.exe
assembly's progress.
The file is located at c:\temp\test\MyService.InstallLog.
Installing assembly 'c:\temp\test\MyService.exe'.
Affected parameters are:
assemblypath = c:\temp\test\MyService.exe
logfile = c:\temp\test\MyService.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be
found in the c:\temp\test\MyService.exe assembly.

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the c:\temp\test\MyService.exe
assembly's progress.
The file is located at c:\temp\test\MyService.InstallLog.
Committing assembly 'c:\temp\test\MyService.exe'.
Affected parameters are:
assemblypath = c:\temp\test\MyService.exe
logfile = c:\temp\test\MyService.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be
found in the c:\temp\test\MyService.exe assembly.
Remove InstallState file because there are no installers.

The Commit phase completed successfully.

The transacted install has completed.

C:\Temp\test>net start
These Windows services are started:

Application Layer Gateway Service
Application Management
Automatic Updates
Background Intelligent Transfer Service
COM+ Event System
Computer Browser
Cryptographic Services
DefWatch
DHCP Client
Distributed File System
Distributed Link Tracking Client
Distributed Transaction Coordinator
DNS Client
Error Reporting Service
Event Log
Help and Support
HTTP SSL
IIS Admin Service
Internet Connection Firewall (ICF) / Internet Connection Sharing (ICS)
IPSEC Services
Logical Disk Manager
Machine Debug Manager
Net Logon
Network Connections
Network Location Awareness (NLA)
Plug and Play
Print Spooler
Protected Storage
Remote Access Connection Manager
Remote Procedure Call (RPC)
Remote Registry
Secondary Logon
Security Accounts Manager
Server
Shell Hardware Detection
Symantec AntiVirus Client
System Event Notification
Task Scheduler
TCP/IP NetBIOS Helper
Telephony
Terminal Services
Windows Audio
Windows Management Instrumentation
Windows Time
WinHTTP Web Proxy Auto-Discovery Service
Wireless Configuration
Workstation
World Wide Web Publishing Service

The command completed successfully.
C:\Temp\test>
Nov 16 '05 #1
2 21836
It sounds like you didn't create an installer for your project. Within your
project add a new Installer class (it's an option in the VS.NET "Add Item"
list). To that installer add a ServiceInstaller and a
ServiceProcessInstaller (both listed in the Components browser). Set their
properties (the service name of the serviceinstaller must match the name of
your service) and then recompile and re-run InstallUtil. You shouldn't see
the message about "No public installers" and you should see your service
added to the list of available services.

Good luck -
Ken
"Mark" <mf****@idonotlikespam.cce.umn.edu> wrote in message
news:uk*************@TK2MSFTNGP12.phx.gbl...
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 successful. I'm
now ready to start my service (I think) but the NET START command does not
appear to indicate that the service is available to be run. The output for NET START is below as well. The Services list in the W2K administrator
tools does not display the service either. The name of my service was set
by VS.NET in the InitializeComponent method as ...

this.ServiceName = "cDcdMain";

How exactly do I start my service? Thanks in advance.

mark

*** DOS OUTPUT BELOW ***

C:\Temp\test>InstallUtil.exe MyService.exe

Microsoft (R) .NET Framework Installation utility Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the c:\temp\test\MyService.exe
assembly's progress.
The file is located at c:\temp\test\MyService.InstallLog.
Installing assembly 'c:\temp\test\MyService.exe'.
Affected parameters are:
assemblypath = c:\temp\test\MyService.exe
logfile = c:\temp\test\MyService.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be
found in the c:\temp\test\MyService.exe assembly.

The Install phase completed successfully, and the Commit phase is beginning. See the contents of the log file for the c:\temp\test\MyService.exe
assembly's progress.
The file is located at c:\temp\test\MyService.InstallLog.
Committing assembly 'c:\temp\test\MyService.exe'.
Affected parameters are:
assemblypath = c:\temp\test\MyService.exe
logfile = c:\temp\test\MyService.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be
found in the c:\temp\test\MyService.exe assembly.
Remove InstallState file because there are no installers.

The Commit phase completed successfully.

The transacted install has completed.

C:\Temp\test>net start
These Windows services are started:

Application Layer Gateway Service
Application Management
Automatic Updates
Background Intelligent Transfer Service
COM+ Event System
Computer Browser
Cryptographic Services
DefWatch
DHCP Client
Distributed File System
Distributed Link Tracking Client
Distributed Transaction Coordinator
DNS Client
Error Reporting Service
Event Log
Help and Support
HTTP SSL
IIS Admin Service
Internet Connection Firewall (ICF) / Internet Connection Sharing (ICS)
IPSEC Services
Logical Disk Manager
Machine Debug Manager
Net Logon
Network Connections
Network Location Awareness (NLA)
Plug and Play
Print Spooler
Protected Storage
Remote Access Connection Manager
Remote Procedure Call (RPC)
Remote Registry
Secondary Logon
Security Accounts Manager
Server
Shell Hardware Detection
Symantec AntiVirus Client
System Event Notification
Task Scheduler
TCP/IP NetBIOS Helper
Telephony
Terminal Services
Windows Audio
Windows Management Instrumentation
Windows Time
WinHTTP Web Proxy Auto-Discovery Service
Wireless Configuration
Workstation
World Wide Web Publishing Service

The command completed successfully.
C:\Temp\test>

Nov 16 '05 #2
THANK YOU!!!!!! You just saved me a ton of time.

The fact that the windows service template in VS.NET does not come with an
Installer class by default implies that a Windows Service frequently does
not require these classes. Could you please give a brief conceptual example
of when this would be the case?

Thanks again.

mark

"Ken Kolda" <no****@spam.com> wrote in message
news:ee**************@TK2MSFTNGP15.phx.gbl...
It sounds like you didn't create an installer for your project. Within your project add a new Installer class (it's an option in the VS.NET "Add Item"
list). To that installer add a ServiceInstaller and a
ServiceProcessInstaller (both listed in the Components browser). Set their
properties (the service name of the serviceinstaller must match the name of your service) and then recompile and re-run InstallUtil. You shouldn't see
the message about "No public installers" and you should see your service
added to the list of available services.

Good luck -
Ken
"Mark" <mf****@idonotlikespam.cce.umn.edu> wrote in message
news:uk*************@TK2MSFTNGP12.phx.gbl...
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 successful. I'm now ready to start my service (I think) but the NET START command does not appear to indicate that the service is available to be run. The output

for
NET START is below as well. The Services list in the W2K administrator
tools does not display the service either. The name of my service was set by VS.NET in the InitializeComponent method as ...

this.ServiceName = "cDcdMain";

How exactly do I start my service? Thanks in advance.

mark

*** DOS OUTPUT BELOW ***

C:\Temp\test>InstallUtil.exe MyService.exe

Microsoft (R) .NET Framework Installation utility Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the c:\temp\test\MyService.exe
assembly's progress.
The file is located at c:\temp\test\MyService.InstallLog.
Installing assembly 'c:\temp\test\MyService.exe'.
Affected parameters are:
assemblypath = c:\temp\test\MyService.exe
logfile = c:\temp\test\MyService.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be found in the c:\temp\test\MyService.exe assembly.

The Install phase completed successfully, and the Commit phase is

beginning.
See the contents of the log file for the c:\temp\test\MyService.exe
assembly's progress.
The file is located at c:\temp\test\MyService.InstallLog.
Committing assembly 'c:\temp\test\MyService.exe'.
Affected parameters are:
assemblypath = c:\temp\test\MyService.exe
logfile = c:\temp\test\MyService.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be found in the c:\temp\test\MyService.exe assembly.
Remove InstallState file because there are no installers.

The Commit phase completed successfully.

The transacted install has completed.

C:\Temp\test>net start
These Windows services are started:

Application Layer Gateway Service
Application Management
Automatic Updates
Background Intelligent Transfer Service
COM+ Event System
Computer Browser
Cryptographic Services
DefWatch
DHCP Client
Distributed File System
Distributed Link Tracking Client
Distributed Transaction Coordinator
DNS Client
Error Reporting Service
Event Log
Help and Support
HTTP SSL
IIS Admin Service
Internet Connection Firewall (ICF) / Internet Connection Sharing (ICS) IPSEC Services
Logical Disk Manager
Machine Debug Manager
Net Logon
Network Connections
Network Location Awareness (NLA)
Plug and Play
Print Spooler
Protected Storage
Remote Access Connection Manager
Remote Procedure Call (RPC)
Remote Registry
Secondary Logon
Security Accounts Manager
Server
Shell Hardware Detection
Symantec AntiVirus Client
System Event Notification
Task Scheduler
TCP/IP NetBIOS Helper
Telephony
Terminal Services
Windows Audio
Windows Management Instrumentation
Windows Time
WinHTTP Web Proxy Auto-Discovery Service
Wireless Configuration
Workstation
World Wide Web Publishing Service

The command completed successfully.
C:\Temp\test>


Nov 16 '05 #3

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

Similar topics

3
by: Doug Bailey | last post by:
I am trying to control a Windows Service via a Web Service interface. (I am developing in .NET2003) I am using the ServiceController object which allows me to read the state of the services with...
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: SQLScott | last post by:
My esteemed VB.Net gurus, I posted this question a week or so ago and recieved 1 response that helped me somewhat but really did not solve the problem (but I do appreciate the response). I...
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...
2
by: Tom Simpson | last post by:
I have set up a Windows service in VB.NET, and created a 'Service Manager' Windows Forms app that can 'get' information from that service. The service consists of the basic service 'framework'...
7
by: shai | last post by:
I am working at .net 1.1, writing in c#. I have windows service with a COM object. Every unexpected time The COM object throw an error that make my service get stuck (do not respond). I can catch...
1
by: TJ | last post by:
I created a windows service using VS2005. I created/adjusted the install class using the designer controls. I set the user to be 'local system'. I installed the service using the VS2005 cmd...
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?...
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: 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
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...

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.