473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

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 3281
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: SH | last post by:
I wish to create a program (really a Windows Service) that sits and waits for a client PC to communicate with it, but I can't come up with a good method of doing so. I want to have a service...
2
by: Joe | last post by:
In all of my C#/Net 1.1 services (VS2003), I always have dual mode functionality. By passing a specific command line argument, the service would run in Console mode as a Console App instead of as...
1
by: Al Wilkerson | last post by:
Hey, Has anyone ever used InstallSheild to create a install/setup package for a ..net service? If so, did you just create the component service and enable the use of the ..Net Class and/or...
1
by: Luurs | last post by:
Hi All, I've been using a asp-label in the HTML <headsection for quite some time in order to dynamically generate meta-keywords,-description, css and js references. Though the actual...
2
by: gopchandani | last post by:
I have an application developed using Visual Studio 2005, I precompiled and deployed it on the server but I am getting errors for assemblies' compilation. There is a solution available all over...
2
by: teejayem | last post by:
I am having problems creating a Windows Service using Visual Studio 2005. Code as follows:- Imports System.IO Imports System.Net.Mail
1
by: TJ | last post by:
I created a windows service using VS2005. I created/adjusted the install class using the designer controls. I set the user to be 'local system'. I installed the service using the VS2005 cmd...
1
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I am reviewing Windows service programming. I'm running VS2005 and programming in VB. I've just found an example in Support: 'How to create a Setup project for a Windows Service in Visual Basic...
0
by: khurramlone | last post by:
I am trying to generate a client proxy from a WCF service library. I am using VS2005, .NET 3.0 on a Windows XP Pro workstation. The WCF service is hosted in a windows service. When I run the windows...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.