473,404 Members | 2,137 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,404 software developers and data experts.

Windows Service and Web Service - Requested registry access is not allowed

Gretings...

I have written a Windows Service that accesses a Web Service.

Both run fine on my development machine....

After installing both the Windows Service and Web Service on my
staging server, I get the following error...

Error Message: System.Web.Services.Protocols.SoapException: Server was
unable to process request. --->
System.Security.SecurityException: Requested registry
access is not allowed.
Can anyone point me in the right direction.....I figure it has
something to do with the security level
of the account that the Windows Service runs under...but both machines
are identical...so I dont understand why there would
be a security issue....
Thanks

Brian Campbell
Nov 15 '05 #1
2 15037
Do you know what is causing this error (i.e.: which registry key is being
access with what rights requested)? If your application does not use the
registry directly, does it write to the event log? If so, the problem
probably lies in creation of the hive for your application. A nice
workaround for this is to log an event during installation and/or first
configuration of the application while running in the context of an
administrator.

As for why the difference between your dev and prod machines, you're
probably an admin on your machine, and the code was probably first run under
your user context while in debug mode. If the problem is creation of a
registry key (e.g.: for an event log hive), it got created under your admin
account before you ever tried running it compiled under a different account.

HTH,
Nicole
"Brian Campbell" <bc***@hotmail.com> wrote in message
news:89**************************@posting.google.c om...
Gretings...

I have written a Windows Service that accesses a Web Service.

Both run fine on my development machine....

After installing both the Windows Service and Web Service on my
staging server, I get the following error...

Error Message: System.Web.Services.Protocols.SoapException: Server was
unable to process request. --->
System.Security.SecurityException: Requested registry
access is not allowed.
Can anyone point me in the right direction.....I figure it has
something to do with the security level
of the account that the Windows Service runs under...but both machines
are identical...so I dont understand why there would
be a security issue....
Thanks

Brian Campbell

Nov 15 '05 #2
Brian,

By default, web services run under the ASPNET account, which is a local
account with limited access (none to the registry, I think). To get around
this, you will have to have the web service run under an account that has
permissions to access the local registry.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Brian Campbell" <bc***@hotmail.com> wrote in message
news:89**************************@posting.google.c om...
Gretings...

I have written a Windows Service that accesses a Web Service.

Both run fine on my development machine....

After installing both the Windows Service and Web Service on my
staging server, I get the following error...

Error Message: System.Web.Services.Protocols.SoapException: Server was
unable to process request. --->
System.Security.SecurityException: Requested registry
access is not allowed.
Can anyone point me in the right direction.....I figure it has
something to do with the security level
of the account that the Windows Service runs under...but both machines
are identical...so I dont understand why there would
be a security issue....
Thanks

Brian Campbell

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
3
by: bfprog | last post by:
Using IBM iSeries client access OLEDB provider to connect to DB2 on AS/400, but cannot create connection using .NET web app. Using following code: Dim cnTest As New...
0
by: Shane | last post by:
Does anyone have any advise on how I can fix the error message shown below? Thanks in advance for any ideas, Shane Server Error in '/' Application....
1
by: Patrick.O.Ige | last post by:
Hi All, After installing Enterprise Librabry and building the libraries when i load an aspx page i get the error :"Requested registry access is not allowed" I'm about to look into it but if...
3
by: Ahmad Jalil Qarshi | last post by:
Hi! I am developing an application in C# as a windows NT Service. This application needs to check for eventlog using EventLog.Exists("System") But unfortunately it generates exception...
5
by: Ankit Aneja | last post by:
This is my problem. I am using Visual 2003, .Net framework 1.1 and the Application Block I configured the DAAB using the Enterprise Library Configuration now this is the error which is coming ...
7
by: Peter Ritchie | last post by:
I'm writing a Web Service and I would like to add performance counter data for monitoring performance of the Web Service's operations over time and load. The problem is, I get the "Requested...
27
by: pisquem | last post by:
I am building an windows service that is to be deployed on a windows server 2003 and I want to have activity written to the event log, I want its own log called ('CustomLog') Below is what I...
0
by: swatitalati | last post by:
Hello when i invoke a method of web service i m getting error like Server was unable to process request. --> Requested registry access is not allowed. syntex for invoking method is as below ...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.