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

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

Post by Radu » Sat, 08 Apr 2006 13:24:53


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
 
 
 

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

Post by Radu » Sat, 08 Apr 2006 13:29:09

Addendum:

VSNET 2005 on XPSP2, and I *AM* logged in as Admin.

Thank you.

 
 
 

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

Post by Radu » Sat, 08 Apr 2006 14:01:05

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.