all .NET apps cause System.Security.Policy.PolicyException

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default all .NET apps cause System.Security.Policy.PolicyException

    I was testing some configuration options with Framework
    Configuration tool and eventually something went wrong
    in .NET security.
    Now cannot do anything in .NET with out
    having "System.Security.Policy.PolicyException: Execution
    permission cannot be acquired." error and CLR debugger
    popup. I get this error running caspol.exe, ANY .NET
    application, even when I try to open Configuration snap-
    in. I have tried to reinstall the framework and it didn't
    help. Virtually nothing works on my machine!!!! I have
    VS.NET 2003 WinXP professional and Iam administrator.
    Please help Im despaerate!!!
    Thanks David
    David Guest

  2. Similar Questions and Discussions

    1. Problems finding WSE policy with Web Apps
      I'm having the same (or a similar) issue, have you come to a resolution yet? *** Sent via Developersdex http://www.developersdex.com *** Don't...
    2. Security Policy
      What is the best way for me to achieve the following 1. Disable CD-ROM, Floppy & USB on client computers 2. Stop users from copying files from...
    3. security policy for many users
      I am developing for an Intranet with about 100 users (we do computer training). We're running about 12 different ASP.NET applications. 4 of these...
    4. Local security policy
      I have two local XP Pro machines that I need to restrict the user rights on. I have found the settings I want to apply in the local groups policy....
    5. Error Security Policy.
      just a guess...but try: web_lowtrust.config web_notrust.config web_hightrust.config that may be what the error is referring to, as far as...
  3. #2

    Default Re: all .NET apps cause System.Security.Policy.PolicyException

    What did you change?

    Running "caspol -reset" at command prompt should reset the settings.

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist


    "David" <david@ramdor.co.il> wrote in message
    news:0a8e01c3c3df$b510b440$a401280a@phx.gbl...
    > I was testing some configuration options with Framework
    > Configuration tool and eventually something went wrong
    > in .NET security.
    > Now cannot do anything in .NET with out
    > having "System.Security.Policy.PolicyException: Execution
    > permission cannot be acquired." error and CLR debugger
    > popup. I get this error running caspol.exe, ANY .NET
    > application, even when I try to open Configuration snap-
    > in. I have tried to reinstall the framework and it didn't
    > help. Virtually nothing works on my machine!!!! I have
    > VS.NET 2003 WinXP professional and Iam administrator.
    > Please help Im despaerate!!!
    > Thanks David

    Teemu Keiski Guest

  4. #3

    Default Re: all .NET apps cause System.Security.Policy.PolicyException

    And of course noting your original info that running caspol throws the
    exception as well, does it throw it when you try "caspol -reset"? If this
    doesn't help (check also support.microsoft.com for potential support
    articles), uninstall the Framework first and then reinstall it and see if
    that helps.

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist


    "Teemu Keiski" <joteke@aspalliance.com> wrote in message
    news:%231RAeWNxDHA.1576@TK2MSFTNGP11.phx.gbl...
    > What did you change?
    >
    > Running "caspol -reset" at command prompt should reset the settings.
    >
    > --
    > Teemu Keiski
    > MCP, Microsoft MVP (ASP.NET), AspInsiders member
    > ASP.NET Forum Moderator, AspAlliance Columnist
    >
    >
    > "David" <david@ramdor.co.il> wrote in message
    > news:0a8e01c3c3df$b510b440$a401280a@phx.gbl...
    > > I was testing some configuration options with Framework
    > > Configuration tool and eventually something went wrong
    > > in .NET security.
    > > Now cannot do anything in .NET with out
    > > having "System.Security.Policy.PolicyException: Execution
    > > permission cannot be acquired." error and CLR debugger
    > > popup. I get this error running caspol.exe, ANY .NET
    > > application, even when I try to open Configuration snap-
    > > in. I have tried to reinstall the framework and it didn't
    > > help. Virtually nothing works on my machine!!!! I have
    > > VS.NET 2003 WinXP professional and Iam administrator.
    > > Please help Im despaerate!!!
    > > Thanks David
    >
    >

    Teemu Keiski Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139