Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / June 2007

Tip: Looking for answers? Try searching our database.

Windows Service - No mapping between account names and security ID

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
IKatzav - 28 Jun 2007 13:36 GMT
Hello all I prepared a windows service and tried to install it with a small
bat like this:

@ECHO OFF

REM The following directory is for .NET 2.0
set DOTNETFX2=%SystemRoot%\Microsoft.NET\Framework\v2.0.50727
set PATH=%PATH%;%DOTNETFX2%

echo Installing WindowsService...
echo ---------------------------------------------------
InstallUtil /i TSMService.exe
echo ---------------------------------------------------
net start TSMService
echo Done.

and also with setup project.

On my company machines it works great, but on my client machine I get this
error:

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the C:\APPs\TSMService\TSMService.exe
assembly's progress.
The file is located at C:\APPs\TSMService\TSMService.InstallLog.

An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: No mapping between account names and
security IDs was done

The Rollback phase of the installation is beginning.
See the contents of the log file for the C:\APPs\TSMService\TSMService.exe
assembly's progress.
The file is located at C:\APPs\TSMService\TSMService.InstallLog.

The Rollback phase completed successfully.

The transacted install has completed.

There are hundreds of questions like this in forums but I haven't found a
solution that works or a tutorial that will show step by step on how to
install a service

Anyone has an Idea on how to solve this bug?

Thanx
Itzik
Mr. Arnold - 28 Jun 2007 14:16 GMT
> Hello all I prepared a windows service and tried to install it with a
> small
[quoted text clipped - 19 lines]
>
> Anyone has an Idea on how to solve this bug?

I don't think it's a bug. I think you have a security or permission rights
issue.

It may work on your machine, because possibly, you are Admin on that machine
in which the bat file is running under that account.

On the other hand, the bat file is running under some account that doesn't
have the rights to do what it's doing, and the install is being aborted and
rolledback.

You can for sure test that if you went to a client machine and logged on as
machine/Admin and used InstallUtil to install the service. Or ran that
bat.file with proper rights.

Now, the link below is a different type of application, but I think it shows
that the issue you're having is security and permissions issue, and there is
no bug, per say.

http://support.microsoft.com/kb/890737

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.