Creating a Windows Service (VS2005 - VB.NET) Problems

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create a simple service since and have never done this before.

I have created a new project in VB.NET that is a Windows Service.
(Just writing a single event entry to the log, just to make sure it works)

I have right-clicked in the designer and chosen Add Installer and modified
the properties appropriately.

I then added a Setup Project and built both solutions.

I opened the Visual Studio 2005 Command Prompt and navigated to the
bin/debug folder and ran installutil.exe myservicename.exe and it looked like
it was going to work. The last message on the command prompt indicated that
installation failed and that it was rolled back.

I then opened the Application Event Log and saw a single error entry for my
service. The error stated:

"Service process could not connect to the service controller."

How can I resolve this issue and get my service to connect to the service
controller?

Thanks!
 
In your ProjectInstaller, have you added both the ServiceInstaller and the
ServiceProcessInstaller?

These are both required.
 
Back
Top