title: Installing Windows Service - No mapping between account names and security ID's were done
body: <p>I have a windows service and setup project. When I right click on the setup project and click install it prompt me for </p>
  
  <ul>
  <li>Username  </li>
  <li>Password</li>
  <li>Confirm Password</li>
  </ul>
  
  <p>I have tried the following combinations </p>
  
  <p>.\MyUserName
  MyDomain\MyUserName</p>
  
  <p>but it comes back with the following error</p>
  
  <p><strong>No mapping between account names and security ID's were done</strong></p>
  
  <p><strong>ServiceProcessInstaller</strong></p>
  
  <pre><code>namespace TestService
  {
      [RunInstaller(true)]
      public partial class ProjectInstaller : System.Configuration.Install.Installer
      {
  
          public ProjectInstaller()
          {
              InitializeComponent();
  
              this.serviceProcessInstaller1.Account = ServiceAccount.User;
              this.serviceProcessInstaller1.Username = @".\MyUserName"; //username;
              this.serviceProcessInstaller1.Password = "123456"; // password;
  
              // Add installers to collection. Order is not important.
          }
  
          private void serviceInstaller1_AfterInstall(object sender, InstallEventArgs e)
          {
  
          }
  
          private void serviceProcessInstaller1_AfterInstall(object sender, InstallEventArgs e)
          {
  
          }
      }
  }
  </code></pre>
  
  <p>To be honest, I'm not even sure why I am prompted for a username and password if I set it in the code...</p>