Re: Custom principles and DnsPermission.Demand()

From: andrew lowe (andrew.lowe###a-t###geac.com)
Date: 03/31/05

  • Next message: Michel Gallant: "Re: ClientCertificates and IIS5 with https://localhost"
    Date: Thu, 31 Mar 2005 10:21:31 +1000
    
    

    "Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message
    news:%23wDQEFTNFHA.3420@tk2msftngp13.phx.gbl...
    > "andrew lowe" <andrew.lowe###a-t###geac.com> wrote in message Under normal
    > circumstances, a demand will walk the entire call stack. The demand could
    > be failing because some other assembly on the call stack doesn't possess
    > DNS permission even if your assembly does. If you want to see the entire
    > call chain at the time of the exception, take a look at the output from
    > the exception's ToString method. My guess would be that one of the other
    > callers either lacks the permission (likely) or is inserting a Deny or
    > PermitOnly stack walk modifier (somewhat less likely). If you need help
    > interpreting the exception information, please post the entire ToString
    > output here.

    Brilliant! You were right, not all of the assemblies on the call stack
    possesed the DNS permission. thank you for your help guys.

    andrew


  • Next message: Michel Gallant: "Re: ClientCertificates and IIS5 with https://localhost"

    Relevant Pages

    • Re: Strong names between exe and dll
      ... C itself uses winforms stuff, that will not cause an exception because C is ... > This passing or not is based upon where you do the demand. ... all the assemblies on the call stack will have your ... > One thing to look out for here is that there are no Microsoft assemblies ...
      (microsoft.public.dotnet.security)
    • A good use for an Object Stack?
      ... I'll be using a stack as a data storage structure. ... assembly tree (the fifth column being an inspection type). ... I'd like four levels of assemblies with the bottom two levels to have ...
      (microsoft.public.excel.programming)
    • Re: A good use for an Object Stack?
      ... I'll be using a stack as a data storage structure. ... assembly tree (the fifth column being an inspection type). ... I'd like four levels of assemblies with the bottom two levels to have ...
      (microsoft.public.excel.programming)
    • Re: Strong names between exe and dll
      ... Since C is signed by you and B is also signed by you, all the assemblies on the call stack will have your signature. ... Doing full demand for your public key in C means that nobody but your code will be able to run either B or C. ... >Subject: Re: Strong names between exe and dll ...
      (microsoft.public.dotnet.security)
    • Re: problem with StrongNameIdentityPermissionAttribute
      ... full stack walk and verifies all the frames on the stack, ... > If I use Demand the assemblies higher in the stack get a permission ... > assembly (for example the public key of assemblies from my company) it ...
      (microsoft.public.dotnet.security)