What Was I Thinking?

Follies & Foils of .NET Development
posts - 95 , comments - 352 , trackbacks - 0

QuickTip: Specifying user credentials when installing a service.

I recently attempted to install a windows service I had created.  I created an installer and deployed the msi to the target machine.   When I ran the setup I was prompted for the  username and password credentials for the identity to run the service.

 

I had a local account created.  The account was permissioned correctly and had been granted the rights to logon as a service.   After supply the credentials, the I received the following error:

Error 1001. The account name is invalid or does not exist, or the password is invalid for the account name specified.

 

After some research, I discovered that you’ve got to include the machine name when specifying the username.  So rather than just a username of “ServiceAccountUser”, I needed to specify “MyServer\ServiceAccountUser”. 

The shorthand form of “.\ServiceAccountUser” also works.

 

Hope this helps.

Print | posted on Saturday, September 25, 2010 6:43 PM | Filed Under [ Visual Studio General Geekiness ]

Feedback

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Comment:
Verification:
 

Powered by: