C# windows service not showing up in service manager

G

Guest

I have written a windows service in C#. I am able to install it, but when I
look in the service manager I don't see it. If I start it at the command line
like this: net start spawner it starts right up and runs. I must have missed
something in my installer classes to make this happen, but I can't seem to
figure it what it is.

Any help you can provide is appreciated,
Brian Hman
 
K

Kevin Yu [MSFT]

Hi Brian,

Please check the following link for a walkthrough on how to create a
windows application and install it. You can create a setup project or use
Installutil.exe to install the service. You might able to find what you
have missed in your app.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vbwlkwalkthroughcreatingwindowsserviceapplication.asp

These articles are also helpful.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vbtskaddinginstallerstoyourserviceapplication.asp

http://support.microsoft.com/?kbid=816169

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/htm
l/cpconinstallerutilityinstallutilexe.asp

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
G

Guest

I am having the same issue with either c# or VB.net. I followed your links.
One difference that I noticed that in my environment, I don't get a
properties window that allows me to set the ServiceName and other service
properties.

I am running VS .NET 2003 on Windows XP Pro.
 
S

Sajay Antony

Check the service name you used.


Kevin Yu said:
Hi Brian,

Please check the following link for a walkthrough on how to create a
windows application and install it. You can create a setup project or use
Installutil.exe to install the service. You might able to find what you
have missed in your app.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vbwlkwalkthroughcreatingwindowsserviceapplication.asp

These articles are also helpful.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/htm
l/cpconinstallerutilityinstallutilexe.asp

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top