System.ComponentModel.Win32Exception

G

Giulio Petrucci

Hi everybody,

I wrote a Windows Service with VS2005, then I compiled it for FW1.1 using
MSBee, obtaining no compiler errors. I tried to install it using the
"InstallUtil.exe" command in the FW1.1 installation directory but the
installation process failed and I got a
System.ComponentModel.Win32Exception with an error message:

"Some mapping between account names and security IDs was not done."

I cheched the System Error Code list and I found this message corresponding
to ERROR_SOME_NOT_MAPPED 1301.

Can anyone help me?
Thanks in advance.

Kind regards,
Giulio - Italia
 
M

MrBonus

I had the ecxact same problem, it can be different things, but what you
want to do first is to make sure the username and password matches up.

"if run from command line"
try to not enter username and password when you run the command line,
then you will get a form, asking you for username and password, if you
can enter username and password here, and the service installs correct,
then you know that the username and password matches up. If not, then
you need to figure out how to write it, it could be like this

.\administrator 'localmachine
MyDomain\administrator 'network

"Usefull solution"
I tried to print out the username and password after I putted them on my
ServiceProcessInstaller.

System.Diagnostics.EventLog.WriteEntry("ServiceTest", "User:""" &
Me.processInstaller.Username & """ Password:""" &
Me.processInstaller.Password & """", EventLogEntryType.Warning)

If the username and password arent set properly here, you will get the
Win32Exception.

My problem, was I had switched the username and password :)
 

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