473,382 Members | 1,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Install a service

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
Nov 22 '05 #1
2 8859
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
Nov 22 '05 #2
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
Nov 22 '05 #3

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

Similar topics

0
by: Owe Armandt | last post by:
Having a problem to install a C# service on my server. The service installs fine on other machines but not on this server. I have installed other services previously though. The error message...
2
by: Jim Slade | last post by:
I downloaded the .NET Framework SP2 exe to a Windows Server 2003 (standard) machine, double clicked on the exe and got a message that starts out: "The upgrade patch cannot be installed by the...
2
by: Harshad | last post by:
Two questions. 1) I followed Walkthrough of Win Service App. At the end, when I run Setup it complains about incorrect user and/or password. Where does it look for userid? I have logged in as...
3
by: Ryan | last post by:
I have a simple project, most of it generated by Visual Studio. Public Windows Service Installer (Also generated), with : public class ProjectInstaller : System.Configuration.Install.Installer...
3
by: David Preuss | last post by:
Hello all, hopefully someone can help me. I have got a service which I want to deploy. I added an installer project to my solution and did everything as stated in some kb articles (eg adding the...
5
by: timburda | last post by:
Scenario: I have a service which has been installed in the service component manager. I am writing a second program (completely unrelated to the service) which will run stand alone. I can...
3
by: Chris Wagner | last post by:
Anyone knows how to install/unistall service with VB.NET without using InstallUtil program? Thanks
4
by: kkt49 | last post by:
# vim: et sw=4 ts=8 sts from wxPython.wx import * import sys, os, time import pywintypes import win32serviceutil import win32service import win32event import win32process
3
by: =?Utf-8?B?Sm9hY2hpbQ==?= | last post by:
I have made a Windows Service and I have read that you should use installutil.exe to register the service. However, no service appears in the Control Panel Administrative Tools Services when I run...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.