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

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!
 
T

Terry Olsen

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

These are both required.
 

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