title: The type or namespace name 'ServiceController' could not be found
body: <p>I am trying to check a service in C#, I have added the <code>System.ServiceProcess.dll</code></p>
  
  <p>Although I get the error:</p>
  
  <blockquote>
    <p>Error  2   The type or namespace name 'ServiceController' could not be found (are you missing a using directive or an assembly reference?) D:\App\Form1.cs 247 13  App</p>
  </blockquote>
  
  <p>My code is as follows:</p>
  
  <pre><code>private void button13_Click(object sender, EventArgs e)
  {
      ServiceController sc = new ServiceController("Spooler");
  
      if (sc.Status == ServiceControllerStatus.Running)
      {
          MessageBox.Show("The service is running.");
      }
  }
  </code></pre>
  
  <p>Do I perhaps need a "using" statement?</p>