"The service did not start due to a logon failure" when starting a custom service.

R

Radu

Hi. I have created a service which I needed to install. Therefore I use
InstallUtil.
On my dev machine at home I login as Administrator and I have *NO*
password set.
In my first attempts with InstallUtil I tried with username =
Administrator and I left the password textboxes blank. No go - it said

An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: No mapping between account names
and security IDs was done

So I tried with
username = XYZ\Administrator where XYZ is, say, my machine's name. It
worked this time. I obtained (snip)

The Commit phase completed successfully.

The transacted install has completed.

Now let's start it. In services.msc I try to start it and I get

"Could not start the ... service on Local Computer. Error 1069: The
service did not start due to a logon failure".

I looked in the service's properties. In the tab "Log On" I find that
the "This account" is checked, with the value ".\Administrator" in
username (without the quotes), and the pass = blank. Notice the ".\" in
".\Administrator". This is correct, IMO.

But still, error 1069. Why ?

PS. I have also tried with "Local system account", with the same
result. Please help !

Thank you very much.
Alex
 
R

Radu

It worked.... :))
But only after I set it to "Local system account" ***AND I CHECKED***
"Allow Service to interact with desktop" !!!
My service *** DOES NOT EVEN HAVE A UI AT ALL ! ***
Go figure !

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