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

SecurityException in Registry

Hello all!

I have problem with reading data from registry. I work on the one machine.
My operation
system is Windows XP SP2.
I read data from registry with help OpenSubKey and SecurityException
appeares for
key HKEY_CURRENT_USER\Software\Microsoft\Protected Storage System
provider\S-1-5-21-2025815041-1961764723-2087665911-3808. I saw permissions
in this key - permissions for SYSTEM exist only. How I can read this key
without changing permissions manually?

Help me please if anybody can!
Thank You.

Dmitriy.

Nov 17 '05 #1
3 3237
AFAIK you cannot read them without assigning additional permissions, that
you will be able to use with your current account

--
Vadym Stetsyak aka Vadmyst

"Dmitriy Kolesnik" <dk**@isd.dp.ua> wrote in message
news:dc**********@mfdebug.isd.dp.ua...
Hello all!

I have problem with reading data from registry. I work on the one machine.
My operation
system is Windows XP SP2.
I read data from registry with help OpenSubKey and SecurityException
appeares for
key HKEY_CURRENT_USER\Software\Microsoft\Protected Storage System
provider\S-1-5-21-2025815041-1961764723-2087665911-3808. I saw permissions in this key - permissions for SYSTEM exist only. How I can read this key
without changing permissions manually?

Help me please if anybody can!
Thank You.

Dmitriy.

Nov 17 '05 #2
Permissions on registry keys can be set without manual user intervention via
the UI. For example, there are Windows API functions that allow setting key
ACLs. As with the manual approach, such changes must be made by an account
with sufficient permissions to modify the ACL on the key.

That said, the highly restrictive ACLs on subkeys of
HKEY_CURRENT_USER\Software\Microsoft\Protected Storage System Provider key
are there for very good reason, and loosening the permissions on such keys
is generally not a particularly good idea...

"Dmitriy Kolesnik" <dk**@isd.dp.ua> wrote in message
news:dc**********@mfdebug.isd.dp.ua...
Hello all!

I have problem with reading data from registry. I work on the one machine.
My operation
system is Windows XP SP2.
I read data from registry with help OpenSubKey and SecurityException
appeares for
key HKEY_CURRENT_USER\Software\Microsoft\Protected Storage System
provider\S-1-5-21-2025815041-1961764723-2087665911-3808. I saw
permissions
in this key - permissions for SYSTEM exist only. How I can read this key
without changing permissions manually?

Help me please if anybody can!
Thank You.

Dmitriy.

Nov 17 '05 #3
You can set permissions manually or programmatically, check the links

(
http://www.codeproject.com/csharp/ac...select=1154858 )
( http://www.helge.mynetcologne.de/setacl/ )
( http://www.phptr.com/articles/articl...&seqNum=8&rl=1 )

--
Vadym Stetsyak aka Vadmyst

"Dmitriy Kolesnik" <dk**@isd.dp.ua> wrote in message
news:dc**********@mfdebug.isd.dp.ua...
Hello all!

I have problem with reading data from registry. I work on the one machine.
My operation
system is Windows XP SP2.
I read data from registry with help OpenSubKey and SecurityException
appeares for
key HKEY_CURRENT_USER\Software\Microsoft\Protected Storage System
provider\S-1-5-21-2025815041-1961764723-2087665911-3808. I saw permissions in this key - permissions for SYSTEM exist only. How I can read this key
without changing permissions manually?

Help me please if anybody can!
Thank You.

Dmitriy.

Nov 17 '05 #4

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

Similar topics

3
by: Scott Emick | last post by:
In my visual studio (enterprise arch. 2003) when I try to open my projects, or add to a project a component (vb windows project) I get a big red X inside a red frame and the error pops up: The...
2
by: Suhail Salman | last post by:
Dear all, why do i get the following exception when i try to write to the event log from a webform. and how can i resolve it? Description: The application attempted to perform an operation not...
0
by: Kovan A. | last post by:
Steps i have taken: 1. Gave ASPNET user access to C:\WINDOWS\system32\config\appevent.evt 2. Set my anonymous asp user to Administrator (to eliminate any problesm with reading and writing) 3....
2
by: Ray5531 | last post by:
I keep getting this error when my asp.net application tries to write into the registry System.Security.SecurityException: Requested registry access is not allowed. I followed the following...
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 ...
3
by: Geoff McElhanon | last post by:
I have been struggling with a security issue that occurs under .NET 2.0, but does not occur under .NET 1.1. Essentially I am trying to open up a performance counter on a remote server and monitor...
0
by: celine1984 | last post by:
i have develop an application using visual studio 2005 and i encounter the following problem. An unhandled exception was generated during the execution of the current web request. Information...
2
by: =?Utf-8?B?RGF2aWQgSw==?= | last post by:
I have some C# code I am using to delete a subkey and its tree from the registry however I am running into some issues. At first, I was using the Registry.LocalMachine.DeleteSubKeyTree method and...
1
by: starrysky | last post by:
Trying to read key "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" value "AUOptions" and get the following : A first chance exception of type 'System.Security.SecurityException'...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.