Install a service

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I wrote an application as a windows service, then when I tried to install it use installutil.exe I kept on getting follow error messages:
An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: No mapping between account names and security IDs was done

I have a user account on that machine and it is in the administrators user group

now what else do I miss? which account the installutil is looking for?

Thanks for the help

Michael
 
in the Projectinstaller class's Initialize component you need to set the Account property for the ServiceProcessInstalle

e.g. VB.NE

Private Sub InitializeComponent(
Me.ServiceProcessInstaller1 = New System.ServiceProcess.ServiceProcessInstalle
Me.ServiceInstaller1 = New System.ServiceProcess.ServiceInstalle

'ServiceProcessInstaller

Me.ServiceProcessInstaller1.Account = ServiceProcess.ServiceAccount.LocalSyste
Me.ServiceProcessInstaller1.Password = Nothin
Me.ServiceProcessInstaller1.Username = Nothin

'ServiceInstaller

Me.ServiceInstaller1.ServiceName = "<yourservicename>
Me.ServiceInstaller1.DisplayName = "<your service display name>

'ProjectInstalle

Me.Installers.AddRange(New System.Configuration.Install.Installer() {Me.ServiceProcessInstaller1, Me.ServiceInstaller1}

End Su

----- Michael wrote: ----

Hi

I wrote an application as a windows service, then when I tried to install it use installutil.exe I kept on getting follow error messages
An exception occurred during the Install phase
System.ComponentModel.Win32Exception: No mapping between account names and security IDs was don

I have a user account on that machine and it is in the administrators user grou

now what else do I miss? which account the installutil is looking for

Thanks for the hel

Michael
 
Back
Top