473,660 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"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
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.Componen tModel.Win32Exc eption: No mapping between account names
and security IDs was done

So I tried with
username = XYZ\Administrat or 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 ".\Administrato r" in
username (without the quotes), and the pass = blank. Notice the ".\" in
".\Administrato r". 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

Apr 7 '06 #1
2 18085
Addendum:

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 !

Alex.

Apr 7 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2220
by: dice | last post by:
I have built a .NET based service that uses a number of related 3rd party dlls. If I compile my code into a dll and use this in a test app all is well - however if I compile my code as a service and try to run the service I get the following exception: System.IO.FileNotFoundException: The specified module could not be found. at CES.VendClientInt.VendClient.GetCardTypes(...) at YQ_Epos_server.CodeHandler.start(...) I have tried copying...
2
7902
by: CLEAR-RCIC | last post by:
Hello All, I wrote a .dll that programatically maps two network drives and copies files from one drive to the other. The .dll works fine when using an .exe to call the .dll. When I call the .dll with a Windows Service I get the following error - "The specified network password is not correct". This makes no sense as both the .exe and the Windows Service are both run from my machine. I also specify my domain account/password in the...
24
4859
by: Agnes | last post by:
I need to disable the exit button in the form . However, the min. and max. button need to keep it How ? Thanks a lot From Agnes
1
6490
by: acool | last post by:
I just created a simple Windows Service in VB.NET. I right clicked on the component and added the installer, installed via InstallUtil.exe all went well until i try to do a net start and then I get: "the service name is invalid" WHY??
1
1402
by: SQLScott | last post by:
I am using the System.ServiceProcess methods to look at the status of several services. It will tell me if it is Stopped, Started, etc. But how do I tell if a service is Not Responding, or Hung? TIA... -- Thanks, Scott
9
13305
by: ganesh4all | last post by:
Hi: I am trying to connect to DB with the following command db2 connect to <dbnameuser <usernameusing <password> It throws the following exception SQL1337N The service "db2inst1" was not found. I checked the /etc/services file also, it has entry in it. Any idea how to resolve this?
2
4712
by: Wimpie van Lingen | last post by:
Hey I have some more questions with regards to Remoting in .NET 2. I'm using TCP with the Binary formatter. My solution consists of 4 projects: - Class Library containing the server classes which Inherits MarshalByRefObject (ok, at this stage it only contains one class... but its gonna grow) - Class Library containing common classes and interfaces that will be shared between all projects. This include interfaces for the server...
5
1671
by: Curious | last post by:
I installed a service program. It contained executables in the form of .exe and .dll files. And the service was started automatically after the install. Then, I UN-installed the program, but the service didn't get cleared from the "Service" panel. How can I delete this "service" from the "Services" panel?
1
5256
by: McKool | last post by:
Hello Group, I'm writting a Windows Services under C# to get some USB events. Because the ServiceBase class does not supports the SERVICE_CONTROL_DEVICEEVENT handler, I'm using P/Invoke to call the RegisterServiceCtrlHandlerEx funtion, using a callback to manage the needed handler. The invoke looks ok, it works. The problem is when the services stops. My callback function receives the SERVICE_CONTROL_STOP handler but the function don't...
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8754
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8542
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8630
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4343
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1740
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.