.NET SecurityPolicy

G

Guest

I am getting the error below when trying to run a newly installed program.
Any idea what the cause of this error is?

"The application attempted to perform an operation not allowed by the
security policy. The Operation required is the SecurityException. To grant
this application the required permission please contact your system
administrator, or use the Microsoft .NET security policy administration tool.
Requested registry access is not allowed"

Please forward replies to (e-mail address removed)
 
C

Chris, Master of All Things Insignificant

The program is not trusted enough to do what it wants to do. Either it's
trying to access the web, or a file on a shared drive or something like
that.

Are you trying to run the program from a shared drive? That's the one that
threw me for a bit. If you trust the application, goto the .Net Framework
security wizard in admin tools and set it up as a trusted app.

Hope it helps
Chris
 
U

UAError

"Chris, Master of All Things Insignificant"
The program is not trusted enough to do what it wants to do. Either it's
trying to access the web, or a file on a shared drive or something like
that.

Actually the error message is more specific than that, i.e.:
First find out whether the program/assembly is granted
"Registry Permission" in the "Microsoft .NET Framework
Configuration" tool.

If it can access the registry in general, get RegMon and
find out which registry entries the program is trying to
access and/or modify.

RegMon
http://www.sysinternals.com/ntw2k/source/regmon.shtml

Then update the ACLs of the affected registry entries
accordingly (i.e. add rights to read/write the entries for
the necesssary user or group).

In regedit.exe simply right-click the registry key in the
LEFT pane - the context menu has a "Permissions..." item.

'Any fool can write code that a computer can understand.
Good programmers write code that humans can understand.'
Martin Fowler,
'Refactoring: improving the design of existing code', p.15
 

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