title: Issues while converting a windows app to windows service
body: <p>I created a monitoring utility that checks cpu, ram, drive space stats and emails if the usage goes above set threshold. It works great in the system tray but I realized that the exe will stop when I log out of windows server. That led me to believe that I needed to create a windows service. I would like to use the existing GUI Form to save data to application settings and use those settings in windows service. Here are the steps I took so far,</p>
  
  <ol>
  <li>Added a Windows Service class. </li>
  <li>Modified the original code to get rid of any interactive items that were related to GUI Form. </li>
  <li>Added the code to this class.</li>
  <li>Added a Service installer.</li>
  <li>Added this code to it--></li>
  </ol>
  
  <p>&nbsp;</p>
  
  <pre><code>public ProjectInstaller()    
  {      
      InitializeComponent();
  
      ServiceProcessInstaller serviceProcessInstaller = new ServiceProcessInstaller();
  
      ServiceInstaller serviceInstaller = new ServiceInstaller();
  
      serviceProcessInstaller.Account = ServiceAccount.LocalSystem;
  
      serviceProcessInstaller.Username = null;
  
      serviceProcessInstaller.Password = null;
  
      serviceInstaller.StartType = ServiceStartMode.Automatic;
  
      serviceInstaller.ServiceName = "Server Monitoring";
  
      this.Installers.Add(serviceProcessInstaller);
  
      this.Installers.Add(serviceInstaller);      
  }
  </code></pre>
  
  <ol start="6">
  <li>Change Start up object to Utility.Program.</li>
  </ol>
  
  <p>When I try installing this through installUtil I get this error</p>
  
  <p>System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Use
  rs\AdminUser\Desktop\Temp\Server' or one of its dependencies. The system cannot
  find the file specified..</p>
  
  <p>Thanks!</p>