473,657 Members | 2,493 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating a simple Windows Service .. can't find it??

Seems like I followed all steps but I can't find my service in the
service manager??

f:\windowsservi ce\EmptyService \EmptyService\b in\Debug>Instal lUtil
EmptyS
ervice.exe
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the
f:\windowsservi ce\EmptyService \
EmptyService\bi n\Debug\EmptySe rvice.exe assembly's progress.
The file is located at
f:\windowsservi ce\EmptyService \EmptyService\b in\D
ebug\EmptyServi ce.InstallLog.
Installing assembly
'f:\windowsserv ice\EmptyServic e\EmptyService\ bin\Deb
ug\EmptyService .exe'.
Affected parameters are:
logtoconsole =
assemblypath =
f:\windowsservi ce\EmptyService \EmptyService\b in\Debug\
EmptyService.ex e
logfile =
f:\windowsservi ce\EmptyService \EmptyService\b in\Debug\Empty
Service.Install Log

The Install phase completed successfully, and the Commit phase is
beginning.
See the contents of the log file for the
f:\windowsservi ce\EmptyService \
EmptyService\bi n\Debug\EmptySe rvice.exe assembly's progress.
The file is located at
f:\windowsservi ce\EmptyService \EmptyService\b in\D
ebug\EmptyServi ce.InstallLog.
Committing assembly
'f:\windowsserv ice\EmptyServic e\EmptyService\ bin\Deb
ug\EmptyService .exe'.
Affected parameters are:
logtoconsole =
assemblypath =
f:\windowsservi ce\EmptyService \EmptyService\b in\Debug\
EmptyService.ex e
logfile =
f:\windowsservi ce\EmptyService \EmptyService\b in\Debug\Empty
Service.Install Log

The Commit phase completed successfully.

The transacted install has completed.

f:\windowsservi ce\EmptyService \EmptyService\b in\Debug>

After I do this I get a popup window that says
Cannot start service from the command line or debugger.

The event log says:
Service cannot be started. The service process could not connect to the
service controller

Something strange in is when My Project, Start up object is set to
"Service1" which is NOT the name of my class or the service.. it's
should be EmptyService I think, but I can't seem to change this.

Also, when I right click on the installerprojec t, what should I enter
for CustomTool and CustomToolnames pace? I entered Emptyservice for
both.

I noticed when I click on add installer project again, it says service
name is empty, too long or has invalid characters.

Thanks for any help or information.

Nov 24 '06 #1
1 9956
The service name needs to be set in the installer class.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"jobs" wrote:
Seems like I followed all steps but I can't find my service in the
service manager??

f:\windowsservi ce\EmptyService \EmptyService\b in\Debug>Instal lUtil
EmptyS
ervice.exe
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the
f:\windowsservi ce\EmptyService \
EmptyService\bi n\Debug\EmptySe rvice.exe assembly's progress.
The file is located at
f:\windowsservi ce\EmptyService \EmptyService\b in\D
ebug\EmptyServi ce.InstallLog.
Installing assembly
'f:\windowsserv ice\EmptyServic e\EmptyService\ bin\Deb
ug\EmptyService .exe'.
Affected parameters are:
logtoconsole =
assemblypath =
f:\windowsservi ce\EmptyService \EmptyService\b in\Debug\
EmptyService.ex e
logfile =
f:\windowsservi ce\EmptyService \EmptyService\b in\Debug\Empty
Service.Install Log

The Install phase completed successfully, and the Commit phase is
beginning.
See the contents of the log file for the
f:\windowsservi ce\EmptyService \
EmptyService\bi n\Debug\EmptySe rvice.exe assembly's progress.
The file is located at
f:\windowsservi ce\EmptyService \EmptyService\b in\D
ebug\EmptyServi ce.InstallLog.
Committing assembly
'f:\windowsserv ice\EmptyServic e\EmptyService\ bin\Deb
ug\EmptyService .exe'.
Affected parameters are:
logtoconsole =
assemblypath =
f:\windowsservi ce\EmptyService \EmptyService\b in\Debug\
EmptyService.ex e
logfile =
f:\windowsservi ce\EmptyService \EmptyService\b in\Debug\Empty
Service.Install Log

The Commit phase completed successfully.

The transacted install has completed.

f:\windowsservi ce\EmptyService \EmptyService\b in\Debug>

After I do this I get a popup window that says
Cannot start service from the command line or debugger.

The event log says:
Service cannot be started. The service process could not connect to the
service controller

Something strange in is when My Project, Start up object is set to
"Service1" which is NOT the name of my class or the service.. it's
should be EmptyService I think, but I can't seem to change this.

Also, when I right click on the installerprojec t, what should I enter
for CustomTool and CustomToolnames pace? I entered Emptyservice for
both.

I noticed when I click on add installer project again, it says service
name is empty, too long or has invalid characters.

Thanks for any help or information.

Nov 25 '06 #2

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

Similar topics

1
1964
by: Comcast Mail | last post by:
I have a program that will connect web server using vpn. It runs perfectly if it runs as a stand along program. But it fails to connect to server while using windows service. The code sample likes HttpWebRequest aRequest = (HttpWebRequest)WebRequest.Create(uri); aRequest.GetResponse(); Any one knows why the windows service failed to connect the server via vpn?
7
712
by: Mike | last post by:
I want to create a windows service that will monitor another window service. what i need for the service to do is, if a service is stopped I need it to start the service back up example: service 1 - my service watches service 2 - windows service service 2 is stopped - service 1 starts service 2
4
1872
by: M.Posseth | last post by:
Hello I have this code that generates a xml string Dim sw As New System.IO.StringWriter Dim objXML As New XmlTextWriter(sw) Dim strXml As String With objXML
3
2446
by: Chris | last post by:
Hi, I need to create a windows service that will poll a database every 10 sec and print processed orders to a printer. Where can I find info on this? Thanks
9
13331
by: garyusenet | last post by:
I am using a C# solution that somebody kindly sent me. It was a console application. I am trying to get use of the MessageBox. I have added the following using directive to the namespaces at the start of the program : - using System; // I've added this...
2
3590
by: =?Utf-8?B?U2Vhbk1hYw==?= | last post by:
I am familiar with how to use winsock in vb6 to create a network app. I'm trying to find a way to take the current vb6 app and create a windows service using system.net.sockets. How do you create a service (for the server side) that accepts incoming client connections using system.net.sockets? -- Sean McIntire
3
2591
by: Mika M | last post by:
I'm programming quite simple Windows Service using C# 2005. I also made setup for it into same solution. When I run setup to install service, it's going fine into C:\Program Files\MyCompany\My Service, and Event Log tells... Event Type: Information Event Source: MsiInstaller Event Category: None Event ID: 11707
4
269
by: emanuelanechei | last post by:
These days i'm creating a windows service in c# which reads some data from a file and saves it in a database. The data in the file changes every minute. I am using FileSystemWatcher object which monitors that file for LastWrite event. The problem is that after the reading of file and writing the data in the database the service quits unexpectedly. What happends? I googled but found nothing about it. Thank you in advance
3
1892
by: Matt Lowrance | last post by:
I'm hoping someone can give me a little guidance. I have written a simple Windows Service that goes out and scrapes a few web pages and updates some data in an access database. The service works correctly in the IDE and trying to be a good citizen I set it to run as "Local Service" when I install it. However once installed it fails silently. My log eventlog message saying the the DB was updated successfully is written, however the...
0
8421
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
8325
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
8844
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
8742
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
8621
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...
0
7354
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5643
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2743
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

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.