Re: Registry Permissions Error
From: Michel Gallant (MVP) (neutron@istar.ca)
Date: 02/20/03
- Next message: Scott Adams: "Re: Registry Permissions Error"
- Previous message: Scott Adams: "Registry Permissions Error"
- In reply to: Scott Adams: "Registry Permissions Error"
- Next in thread: Scott Adams: "Re: Registry Permissions Error"
- Reply: Scott Adams: "Re: Registry Permissions Error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 20 Feb 2003 12:43:12 -0500 From: "Michel Gallant (MVP)" <neutron@istar.ca>
You are running into user permissions to access the registry. This level of
security is "below" .net so applies to it also.
All settings are discussed in detail in W2k ResKit herre:
http://www.microsoft.com/windows2000/techinfo/reskit/en-us/default.asp?url=/windows2000/techinfo/reskit/en-us/prork/prdd_sec_njrp.asp
Note sections on HKCU versus HKLM permissions for various users.
- Michel Gallant
MVP Security
http://www.jensign.com
Scott Adams wrote:
> Hello.
>
> I have created a Windows application with VB.NET that depends heavily on
> writing to, reading from, and creating keys in the registry. All is well on
> my dev box which runs Win2K pro (on an Admin account). When I install the
> app on a user's machine who is not an Administrator (restricted security
> policy), the user is not able to create keys in the registry. (The same is
> true if the user manually tries to open regedit.exe and tries to create a
> key.) I have researched heavily into this issue, yet the answer evades me.
> Can someone help please? Thanks.
>
> Sample code:
> Public Sub SampleSub
> Dim regKey as Microsoft.Win32.RegistryKey = _
> Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\MyApp",
> True)
> regKey.SetValue("MyValue","MyData")
> regKey.Close
> End Sub
>
> Error message is from "mscorlib"; "Requested registry access is not
> allowed."
>
> Scott Adams
> AdamsSoft Co.
- Next message: Scott Adams: "Re: Registry Permissions Error"
- Previous message: Scott Adams: "Registry Permissions Error"
- In reply to: Scott Adams: "Registry Permissions Error"
- Next in thread: Scott Adams: "Re: Registry Permissions Error"
- Reply: Scott Adams: "Re: Registry Permissions Error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|