[Webinar] Learn how to a build a cloud-first strategyRegister Now


Problem with ServiceProcess.ServiceController

Posted on 2006-03-19
Medium Priority
Last Modified: 2010-04-23
When trying to test (run Debug) my project I get this error:

Error      1      Type 'ServiceProcess.ServiceController' is not defined.      C:\Documents and Settings\TheUser\Local Settings\Application Data\Temporary Projects\WindowsApplication1\Form1.vb      12      27      WindowsApplication1

The application should list services and let a user start and stop them.
Question by:DCreature
  • 2

Accepted Solution

willbdman earned 2000 total points
ID: 16233794
Have you added a reference to this class?

on the toolbar go to:-

Project -> Add Reference...

Then scroll down to System.ServiceProcess.dll

Highlight it and then click the Select button in the top right-hand corner. Then click OK at the bottom.

You cold also reference it at the very top of your form code, before any code:-

Imports System.ServiceProcess

Hope this helps

Expert Comment

ID: 16233797
If this doesn't help, post your code and I will have a look.

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Integration Management Part 2
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month20 days, 12 hours left to enroll

865 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question