• I removed the www from the URL, please update your bookmarks and pay attention to the bottom of the screen if using Google Chrome to allow push notifications again.

Cant See my service in the services Services window

groadsvb

Well-known member
Joined
Nov 13, 2006
Messages
75
Programming Experience
Beginner
I am using windows 7 professional, VS2010 and I created a simple service just to learn how to do it.
In the project properties I have the application type as Windows service. the assembly name and Root Namespace are the same. the Startup Oject is service1.
The compile panel has Platform as Active (86). I did change the advanced compile option to target .NET framework 4.

I can build with no errors. The path is to bin\Debug.

I change to the bin\debug folder where the .exe is built and I run the installutil utility which is successful but my service does not show in my windows services so that I can start it.

What am I missing?
 

groadsvb

Well-known member
Joined
Nov 13, 2006
Messages
75
Programming Experience
Beginner
Please excuse my ignorance but this it what I checked the InstallUtil.InstallLog and see the text below:

Beginning the Install phase of the installation.
See the contents of the log file for the C:\Users\grhod\Documents\Visual Studio 2010\Projects\CicWebRequest\CicWebRequest\bin\Debug\CicWebRequest.exe assembly's progress.
The file is located at C:\Users\grhod\Documents\Visual Studio 2010\Projects\CicWebRequest\CicWebRequest\bin\Debug\CicWebRequest.InstallLog.

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the C:\Users\grhod\Documents\Visual Studio 2010\Projects\CicWebRequest\CicWebRequest\bin\Debug\CicWebRequest.exe assembly's progress.
The file is located at C:\Users\grhod\Documents\Visual Studio 2010\Projects\CicWebRequest\CicWebRequest\bin\Debug\CicWebRequest.InstallLog.
The Commit phase completed successfully.
The transacted install has completed.
I looked at the event viewer and did not find anything. Are there any other event logs that you were refering too? Thanks.
 

Herman

Well-known member
Joined
Oct 18, 2011
Messages
873
Location
Montreal, QC, CA
Programming Experience
10+
The event log should show you an error if the service controller failed to start your service. If there is nothing it means either that the service controller never attempted to start it or that it starts just fines and possible crashes later.
 

groadsvb

Well-known member
Joined
Nov 13, 2006
Messages
75
Programming Experience
Beginner
If the service does not show up in my windows services list, how do I start it? Thanks.
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,277
Location
Norway
Programming Experience
10+
If you had the Services window open when installing you would have to Refresh it for a newly installed service to show up.
 

groadsvb

Well-known member
Joined
Nov 13, 2006
Messages
75
Programming Experience
Beginner
If you had the Services window open when installing you would have to Refresh it for a newly installed service to show up.
To all that helped me through this I thank you. I got it. My service was actually showing as the default name "service1". I know now about the SeriveInstaller and ServiceProcessInstaller. Thanks for your input. I will continue my quest to learn this .net universe one project at a time.
 
Top Bottom