Running service under the account: User

A

Alex

Hi everybody
Is creating of the service, which must be ran under the "user account"
something really tricky? I mean if in ServiceProcessInstaller
properties I'm using account: Local System everything works fine. But
if I select account: User, during the service installation process the
dialog pops up where I have to key in user id and password, which is
fine, but after that I'm getting the message: "An exception occurred
during the Install phase.System.ComponentModel.Win32Exception: The
account
name is invalid or does not exist, or the password is
invalid for the account name specified" ???
The user id and password are OK, I can log in to my machine using
these parameters, I added this user(account), which has to run the
service to the Administrators group... Still the same error.
I've found already several similar posts one in 2003, one in 2004 in
even one from current October. None had answers, which could solve
the problem.
But obviously some people can do it.
So what I'm doing fundamentally wrong and what I'm suppose to do to be
able to install and run the service under the user account:
1) some special things in C# project?
2) some special things setting of the Windows user(account)?

Thanks,
Alex
 
A

Alex

I've found the answer myself, it was simple - when I was entering user
id during the installation process, I had to type in: MACHINE_NAME
\UserID, but I was entering just UserID.

Hope it helps someone..

Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top