.NET SecurityPolicy

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chad

    .NET SecurityPolicy

    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 SecurityExcepti on. 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@failedse curity.com
  • Chris, Master of All Things Insignificant

    #2
    Re: .NET SecurityPolicy

    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



    "Chad" <Chad@discussio ns.microsoft.co m> wrote in message
    news:0A50CB8C-ABB6-4E4E-8288-09D8A8E7AE96@mi crosoft.com...[color=blue]
    >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 SecurityExcepti on. 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@failedse curity.com[/color]


    Comment

    • UAError

      #3
      Re: .NET SecurityPolicy

      "Chris, Master of All Things Insignificant"
      <chris@No_Spam_ Please.com> wrote:
      [color=blue]
      >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.
      >[/color]

      Actually the error message is more specific than that, i.e.:[color=blue][color=green]
      >> Requested registry access is not allowed"[/color][/color]

      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


      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

      Comment

      Working...