views:

91

answers:

2

Hello, I have created a Windows Service in VB.net for building xML from a database. I need to install it in my machine. I have followed all the steps as shown in http://support.microsoft.com/default.aspx/kb/816169

When I right click on setup project and click install it opens the installation wizard and after hitting the next buttons it promptly says that the Service is installed successfully.

When I go to Services I don't see the service. I refreshed the list and rebooted my machine n times.

Please help.

A: 

I would suggest that you use InstallUtil.exe found in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 (assuming .net 2.0) to install a .net service on your own machine.

Also look at this question - install-a-service-from-command-line-vb-express-2008

Nathan Fisher
A: 

Are you sure that you updated the ServiceName property in your class file?

private void InitializeComponent()
{
   components = new System.ComponentModel.Container();
   this.ServiceName = "Service1";
}

This is what will show up in the Services List (not what you might have named the program).

Jim W