469,628 Members | 1,049 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,628 developers. It's quick & easy.

windows service install registry error

I am trying to install a windows service written in .net 2003 on my Windows
2000 computer.

I have followed the walkthru given in msdn but the service fails to install
with 'requested registry access is not allowed' (using both InstallUtil or
by creating an installer).

I have tracked the registry access failure using RegMon and found that it
fails on

OpenKey HKLM\SYSTEM\CurrentControlSet\Services\EventLog ACCDENIED Access:
0x2001F BELLFRUIT\Rbeumer

The 'Rbeumer' account is a valid account and have no problem accessing the
registry using regedit...

The account I am trying to use in the serviceProcessInstaller is
LocalSystem...

Has anyone had a similar problem ???? Any ideas ????
Jul 21 '05 #1
2 5636
It looks like Rbeumer is the user doing the install, and whether it's valid
or not doesn't matter, it's whether it can update those registry entries,
and when you say "access ... using regedit" do you mean reading or
creating?
--
Phil Wilson [MVP Windows Installer]

"René Beumer" <rb*****@bellfruitgames.co.uk> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I am trying to install a windows service written in .net 2003 on my Windows 2000 computer.

I have followed the walkthru given in msdn but the service fails to install with 'requested registry access is not allowed' (using both InstallUtil or
by creating an installer).

I have tracked the registry access failure using RegMon and found that it
fails on

OpenKey HKLM\SYSTEM\CurrentControlSet\Services\EventLog ACCDENIED Access: 0x2001F BELLFRUIT\Rbeumer

The 'Rbeumer' account is a valid account and have no problem accessing the
registry using regedit...

The account I am trying to use in the serviceProcessInstaller is
LocalSystem...

Has anyone had a similar problem ???? Any ideas ????

Jul 21 '05 #2
Very good point - just tried it and I can read the read successfully but
cannot create anywhere in HKLM\System\CurrentControlSet key...

I have been doing some more investigation and problem appears to be more
compounded. I have tried to install the service on a machine where I have
got read/write reg access and (using InstallUtil.exe) receive the following
error message after the 'Creating EventLog source Service1 in log
Application...' 'An exception has occurred during the install phase.
SystemComponentMode.Win32Exception:the account name is invalid or does not
exist, or the password is invalid for the account specified'

again the serviceProcessInstaller account I am using is LocalService.

Thanks for your help

"Phil Wilson" <pd*******@nospam.cox.net> wrote in message
news:OD**************@TK2MSFTNGP10.phx.gbl...
It looks like Rbeumer is the user doing the install, and whether it's valid or not doesn't matter, it's whether it can update those registry entries,
and when you say "access ... using regedit" do you mean reading or
creating?
--
Phil Wilson [MVP Windows Installer]

"René Beumer" <rb*****@bellfruitgames.co.uk> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I am trying to install a windows service written in .net 2003 on my

Windows
2000 computer.

I have followed the walkthru given in msdn but the service fails to

install
with 'requested registry access is not allowed' (using both InstallUtil or by creating an installer).

I have tracked the registry access failure using RegMon and found that it fails on

OpenKey HKLM\SYSTEM\CurrentControlSet\Services\EventLog ACCDENIED

Access:
0x2001F BELLFRUIT\Rbeumer

The 'Rbeumer' account is a valid account and have no problem accessing the registry using regedit...

The account I am trying to use in the serviceProcessInstaller is
LocalSystem...

Has anyone had a similar problem ???? Any ideas ????


Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by tuuky | last post: by
2 posts views Thread by cd | last post: by
3 posts views Thread by Jeremy S. | last post: by
2 posts views Thread by René Beumer | last post: by
4 posts views Thread by tshad | last post: by
15 posts views Thread by =?Utf-8?B?RWxpb3Ro?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.