Re: Error on service installation - Solution

From: Max (Please_at_reply.to.news.group)
Date: 05/21/03


Date: Wed, 21 May 2003 10:11:59 +0200


If nothing helps - RTFM.
It says

(taken from .NET Framework Class Library, ServiceAccount Enumeration help
topic)

<<
Note The values LocalService and NetworkService are available only on
Windows XP.
>>

And I was trying to use LocalService on Windows 2000. That was the problem.

Hope you do not mind my talking with myself in a newsgroup. (:-))
Sometimes it is plesant to talk with a clever man.

"Max" <Please@reply.to.news.group> wrote in message
news:eQdbq0THDHA.2200@TK2MSFTNGP11.phx.gbl...
> Hi!
>
> I perform installutil <myservice> and get the following error
>
> ******************************************************************
> An exception occurred during the Install phase.
> System.ComponentModel.Win32Exception: The account name is invalid or does
> not ex
> ist, or the password is invalid for the account name specified
> ******************************************************************
>
> I am logged on as an administrator (member of local Administrators
> workgroup). Permissions for the <myservice>.exe file include full control
> for Local Administrators, System, and the particular user I am logged on
as.
>
> The project was created on another computer some time ago and worked fine
> there.
> The computer where the project was created was XP, Visual Studio .NET (not
> 2003, the very first one). (the version of .NET framework was
1.0.something
> if I am mistaking)
>
> My current computer where I am currently having problems is 2000 with .NET
> Framework 1.1, SDK. (the version of the framework is 1.1.4322)
>
> I have built the project from source code on this particular computer
where
> I am trying to run it.
>
> I have actually ran out of ideas what else should I check to make it work.
> If you have one - please write.
>
> Thank you.
>
>



Relevant Pages

  • Error on service installation
    ... An exception occurred during the Install phase. ... The account name is invalid or does ... I am logged on as an administrator (member of local Administrators ...
    (microsoft.public.dotnet.security)
  • Re: Running a Python Service under the LocalService or NetworkService Account
    ... not want this service to run under a user account. ... to be able to run as a LocalService, NetworkService and the like. ... it is possible to specify that the service should run using ...
    (comp.lang.python)
  • Re: 7023 - Windows Time Service - Not all privileges referenced are assigned to the caller
    ... blank it'll fill the password in for you, then if you've given LocalService ... > Event Source: Service Control Manager ... > The Windows Time service terminated with the following error: ... > "The account specified for this service is different from the account ...
    (microsoft.public.windows.server.general)
  • Re: Using the registry in Vista.
    ... account name and so my service and executable run in the LocalService ... HKEY_LOCAL_MACHINE for the registry. ... Non-elevated programs are not allowed to write to HKLM. ...
    (microsoft.public.vc.mfc)
  • Re: 2nd opinion? - Windows service app development
    ... I would say you'd be better off running under the account of least ... you'd need LocalSystem privs? ... LocalService also, you might find there's something in there that's too ... I've just been assigned to write a quickie app. ...
    (microsoft.public.dotnet.languages.vb)