PC Review


Reply
Thread Tools Rate Thread

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

 
 
=?Utf-8?B?TmF0aGFuQw==?=
Guest
Posts: n/a
 
      25th Aug 2006
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!

 
Reply With Quote
 
 
 
 
Terry Olsen
Guest
Posts: n/a
 
      26th Aug 2006
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!
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Install VS2005 windows service =?Utf-8?B?T3ppdHJhdmVsbGVy?= Spyware Discussion 0 24th Nov 2006 04:27 AM
Windows Service project template missing in VS2005 ?? Mark Huebner Microsoft Dot NET 1 22nd Sep 2006 06:07 PM
RE: Problems with Windows CE 5.0 VS2005 debugging and ActiveSync =?Utf-8?B?c3dj?= Microsoft Dot NET Compact Framework 1 6th Jun 2006 08:50 PM
problems creating web service project Microsoft ASP .NET 2 7th Mar 2005 02:35 AM
Facing Problems with creating a Windows service Altruist Microsoft C# .NET 1 16th Feb 2005 12:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:53 PM.