473,402 Members | 2,061 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,402 software developers and data experts.

servicecontroller - having trouble running it

I'm getting this exception using the servicecontroller component, just by
calling servicecontroller1.canstop().
Cannot open D5Z0071 service on computer '.'.

I've left the name of the machine alone (defaults to '.', ie, local) and
I've set the servicename to "D5Z0071", the name of my sql server. Now it
happens that this is the name of the machine also, since it defaulted to the
machine name on installation and I never changed it. I don't know if that
may be the problem, but I wanted to mention it. I have imports for both
system and system.serviceprocess.

Any ideas?

Tx - Bernie Yaeger
Nov 21 '05 #1
4 1507
Bernie,
However "D5Z0071" is *NOT* the name of the SQL Server Service! It *IS* the
name of the instance of SQL Server.

You need to use Services under Computer Management to find the name of the
Service itself. It should be something like "MSSQLSERVER".

Alternatively you can use the Server Explorer in VS.NET to find the name.

Remember you want the ServiceName, not the DisplayName or instance name.

Hope this helps
Jay

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:eo**************@TK2MSFTNGP10.phx.gbl...
I'm getting this exception using the servicecontroller component, just by
calling servicecontroller1.canstop().
Cannot open D5Z0071 service on computer '.'.

I've left the name of the machine alone (defaults to '.', ie, local) and
I've set the servicename to "D5Z0071", the name of my sql server. Now it
happens that this is the name of the machine also, since it defaulted to
the machine name on installation and I never changed it. I don't know if
that may be the problem, but I wanted to mention it. I have imports for
both system and system.serviceprocess.

Any ideas?

Tx - Bernie Yaeger

Nov 21 '05 #2
Brenie,

I don't know if this page helps in addition to Jay's answer

http://support.microsoft.com/default...b;en-us;321185

However when you have not seen it than you cannot decide about that

I hope it helps something.

Cor
Nov 21 '05 #3
Hi Jay,

Thanks; I'm sure you're correct. I misunderstood.

Thanks again,

Bernie

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Bernie,
However "D5Z0071" is *NOT* the name of the SQL Server Service! It *IS* the
name of the instance of SQL Server.

You need to use Services under Computer Management to find the name of the
Service itself. It should be something like "MSSQLSERVER".

Alternatively you can use the Server Explorer in VS.NET to find the name.

Remember you want the ServiceName, not the DisplayName or instance name.

Hope this helps
Jay

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:eo**************@TK2MSFTNGP10.phx.gbl...
I'm getting this exception using the servicecontroller component, just by
calling servicecontroller1.canstop().
Cannot open D5Z0071 service on computer '.'.

I've left the name of the machine alone (defaults to '.', ie, local) and
I've set the servicename to "D5Z0071", the name of my sql server. Now it
happens that this is the name of the machine also, since it defaulted to
the machine name on installation and I never changed it. I don't know if
that may be the problem, but I wanted to mention it. I have imports for
both system and system.serviceprocess.

Any ideas?

Tx - Bernie Yaeger


Nov 21 '05 #4
Hi Cor,

Thanks, as always. I will try to figure it out per Jay's instructions, but
I'll have a look at the kb article if I have problems.

Tx,

Bernie

"Cor Ligthert" <no************@planet.nl> wrote in message
news:uv**************@TK2MSFTNGP09.phx.gbl...
Brenie,

I don't know if this page helps in addition to Jay's answer

http://support.microsoft.com/default...b;en-us;321185

However when you have not seen it than you cannot decide about that

I hope it helps something.

Cor

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Anthony Boudouvas | last post by:
Hi to all, i have made a module that can get a list of services running on a local or remote machine. So i have machine A that get a list of services of machine B The way the configuration is...
10
by: Bill Burris | last post by:
How do I set the ServiceType to InteractiveProcess, since this property is read only? Is there a way to set this with code in my Installer class, or a standalone process? I normally set this...
1
by: Tom J | last post by:
What do I have to do to get System.ServiceProcess.ServiceController.ExecuteCommand(int) to work? I have written a service that overrides OnCustomCommand to handle commands sent to it. If I...
2
by: Jonathan Leonard | last post by:
Hello, I'm using the .NET class ServiceController to start my service. After calling start, a subsequent call to ServiceController.Status is returning 'stopped.' I know the service is running...
2
by: Vadim Rapp | last post by:
Hello, I have the following code: ========== Dim RemoteService As System.ServiceProcess.ServiceController RemoteService = New System.ServiceProcess.ServiceController("service1",...
6
by: Arnie | last post by:
We're using the ServiceController class provided by the .NET Framework, programming in C#. We are using the Start() method to start a service from another service. This works fine most of the...
7
by: =?Utf-8?B?YXVsZGg=?= | last post by:
hello, i'm try to research the way to open a remote machine's to collect the services and processes. i have the local data collection running but i can not figure out what MSDN or the C# help file...
0
by: =?Utf-8?B?RGlvZ28gQWx2ZXMgLSBTb2Z0d2FyZSBEZXZlbG9w | last post by:
Greetings... I have a service running in this PC that has a workgroup called H4CK3D and the computer name is PC_DO_DIOGO and my ServiceController is on a computer inside a domain called...
2
by: northstar7 | last post by:
I'm using a ServiceController to try to stop and start a service. For development, I've been using the Apache service to experiment with. I have a simple windows form in vb.net with a start and a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.