In your ProjectInstaller, have you added both the ServiceInstaller and the
ServiceProcessInstaller?
These are both required.
"NathanC" <(E-Mail Removed)> wrote in message
news:009026E9-5B96-488F-AE8A-(E-Mail Removed)...
>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!
>
|