469,626 Members | 878 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

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

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!

Aug 25 '06 #1
1 3165
In your ProjectInstaller, have you added both the ServiceInstaller and the
ServiceProcessInstaller?

These are both required.

"NathanC" <Na*****@discussions.microsoft.comwrote in message
news:00**********************************@microsof t.com...
>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!

Aug 26 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.