SecurityPermission (Accessing remote registry key)

  • Thread starter Thread starter Terry Olsen
  • Start date Start date
T

Terry Olsen

I need to read a registry key from a remote computer. Using "regedt32" I
can connect and look at keys just fine. However, when I try to do it with
my app, I get the following error:

The application attempted to perform an operation not allowed by the
security policy.

The operation required the SecurityException. To grant this application the
required

permission please contact your system administrator, or use the Microsoft
..NET security

policy administration tool.



How can I fix this?


Thanks!
 
I suppose I should update on this problem. It was giving me the stated
error because I was running the program from a network share. Now that
I've copied the program to my local PC, I get a "access to the registry
key denied". Basically, I need to know how to set up SecurityPermission
so I can access the remote registry (read only) from my App. Any help
is appreciated.
 
Back
Top