Windows Service - No mapping between account names and security ID

G

Guest

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
 
M

Mr. Arnold

IKatzav said:
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:

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top