473,385 Members | 1,907 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,385 software developers and data experts.

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 5855
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: tuuky | last post by:
I've created a Windows Service in C# and an installer project for it. I installed the service using the packaged installer project and the service was installed correctly and it runs fine. ...
2
by: cd | last post by:
Is there a specific process or permissions that must be granted to get a .NET (framework 1.4) Window Service to run properly on a Windows 2003 Server? I built a Windows Service to start two local...
3
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I...
2
by: René Beumer | last post by:
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...
2
by: letibal | last post by:
Hello, I have written a windows service and created an installer for it. The service runs under the system accounts. When started, it launches a GUI. By default, the InteractiveProcess property...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
15
by: =?Utf-8?B?RWxpb3Ro?= | last post by:
I try to install Windows Services but it show this error during the installation process, "Insufficient System resources exist to complete the requested service." I created this Services in VB...
0
balabaster
by: balabaster | last post by:
Hi, I know this question has been answered before (somewhat) but I have a twist... I've written a client/server application where the server portion runs as a windows service and allows...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.