SecurityPermission (Accessing remote registry key)

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!
 
T

Terry Olsen

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top