469,948 Members | 2,920 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,948 developers. It's quick & easy.

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

Hi. I have created a service which I needed to install. Therefore I use
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.

Apr 7 '06 #1
2 17811

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

Thank you.

Apr 7 '06 #2
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 !


Apr 7 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by ganesh4all | last post: by
2 posts views Thread by Wimpie van Lingen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.