Home
> Uncategorized > No mapping between account names and security IDs
No mapping between account names and security IDs
When installing a windows service, using installutil, it prompted for a username, and password, and
since my Administrator user didn’t have a password, I got the following error:
System.ComponentModel.Win32Exception: No mapping between account names and security IDs was done
After reading a few posts, I found a handy tip to solve this
Add this to the ProjectInstaller.cs file (in InitializeComponent)
this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalSystem;
Et viola, it installs without prompting for a password.
Categories: Uncategorized
Thanks, Thanks, Thanks, Thanks, Thanks… You have made my day.
LikeLike
Many thanks for your top tip.
Lee
LikeLike
If you enter this line of code, you can take out this other two..
“this.serviceProcessInstaller.User”
“this.serviceProcessInstaller.Password”
Really good tip!!!
LikeLike
Worked like a bomb……SWEEEEETTTTTT!!!
LikeLike
Thanks for your tip and to Juan as well 🙂 This saved me a lot of head scratching!
LikeLike
Thanks for your tip. It’ s worked 🙂
LikeLike
Thank you brother. You saved my weekend.
LikeLike