title: Access Denied. installutil.exe installation after rebuilding in VS Express 2013
body: <p>This is my first time in C#, and I was following this tutorial in order to test out a Directory Monitoring Service. The relevant installation steps is in Step 6:</p>
  
  <p><a href="http://www.rhyous.com/2012/11/27/c-creating-a-service-to-monitor-a-directory/" rel="nofollow">http://www.rhyous.com/2012/11/27/c-creating-a-service-to-monitor-a-directory/</a></p>
  
  <pre><code>Step 6 – Install the Service
  Open the Developer Command Prompt by right-clicking and choosing Run as   
  Administrator.
  In the command prompt, change to the bin\debug folder in your project 
  directory.
  Run this command to install the service:
  installutil.exe DirectoryMonitoring.exe
  
  Start the service with this command.
  net start DirectoryMonitoringService
  </code></pre>
  
  <p>After following the tutorial, my service was able to install and run after building using the Visual Studio Development Console. I then updated my code a little and built it again. </p>
  
  <p>I tried using the same steps to install or run the service via the VSD console again, but I get an Accessed Denied error when I try to do either commands.</p>
  
  <p>I get the following error for the installation:     </p>
  
  <pre><code>System.InvalidOperationException: Cannot open Service Control Manager on     
  computer '.'. This operation might require other priviledges.
  The inner exception System.ComponentModel.Win32Exception was thrown with the 
  following error message: Access is denied.
  </code></pre>
  
  <p>I also get the following error for net start:</p>
  
  <pre><code>The service name is invalid.
  </code></pre>
  
  <p>What is going on? I was able to do everything perfectly the first time. Why is it not working now?</p>