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

How to access registry

Hi
I am developing web application through which i've to write and read the
values from the registry.
When i set impersonate property to "false" it is displaying exception "
Requested Registry Access is not allowed"
so then i changed impersonate to "true" and it is reading values from the
registry and writing into the registry.

but when i runing the same aplication in same system now am getting the
exception "requested registry access is not allowed" though i've set
impersonate property to "true"

Can anybody tell me how to solve this problem.
Its urgent for me.
Thanx in advance
Yoshitha
Nov 19 '05 #1
1 1716
Options
1. Reduce security on the registry to allow IUSR access. This is a major
security issue, however.

2. Create a windows service that can accept commands by Remoting (a Registry
settings service) and call it to do the work. This makes the security on the
Registry higher, but you are now the keeper of the keys, so do not make a
"enter the registry key you would like to change" page.

3. Create a COM+ application that controls access to the Registry.

Overall, you are going to reduce security no matter how you do this. Limit
exposure by only exposing keys you know are going to be changed by your
application. This is whether you abstract the access via a service or COM+
application, or not. Run the service or COM+ app under a limited account, if
you go that direction, or you are inviting potential hacks on the machine.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Yoshitha" wrote:
Hi
I am developing web application through which i've to write and read the
values from the registry.
When i set impersonate property to "false" it is displaying exception "
Requested Registry Access is not allowed"
so then i changed impersonate to "true" and it is reading values from the
registry and writing into the registry.

but when i runing the same aplication in same system now am getting the
exception "requested registry access is not allowed" though i've set
impersonate property to "true"

Can anybody tell me how to solve this problem.
Its urgent for me.
Thanx in advance
Yoshitha

Nov 19 '05 #2

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

Similar topics

7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
21
by: Kevin Swanson | last post by:
I'm attempting some remote registry manipulation via C#. I've written a test app to simply grab a specified key from a specified hive on a specified machine. The call to OpenSubKey is throwing...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
1
by: david epsom dot com dot au | last post by:
http://msdn.microsoft.com/msdnmag/issues/05/04/RegFreeCOM/default.aspx Simplify App Deployment with ClickOnce and Registration-Free COM When you set app = createobject("Access.application.11")...
1
by: PiotrKolodziej | last post by:
Hi Here is the code: this.regPath = @"Software\FileManager\" ; System.Security.Permissions.RegistryPermission permissions = new...
1
by: UK1967 | last post by:
I wrote a ASP.NET application (Windows 2003 Enterprise Server, IIS, .NET Framework 1.1). This application use the Windows (AD) account and impersonation. Some functions in this application contact,...
37
by: Allen Browne | last post by:
If you develop for others, you probably have multiple versions of Access installed so you can edit and create MDEs for clients in different versions. This works fine under Windows XP, even with...
3
by: JB | last post by:
I am trying to access a registry key on computer like so: key = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, computerName).OpenSubKey(Subkey); There are two keys I am trying to...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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...

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.