Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / January 2005

Tip: Looking for answers? Try searching our database.

.NET SecurityPolicy

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chad - 10 Jan 2005 18:53 GMT
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 cdavis@failedsecurity.com
Chris, Master of All Things Insignificant - 10 Jan 2005 19:17 GMT
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

>I am getting the error below when trying to run a newly installed program.
> Any idea what the cause of this error is?
[quoted text clipped - 7 lines]
>
> Please forward replies to cdavis@failedsecurity.com
UAError - 10 Jan 2005 22:14 GMT
"Chris, Master of All Things Insignificant"
<chris@No_Spam_Please.com> wrote:

>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.:
>> Requested registry access is not allowed"

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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.