Why compiler won't emit permission XML correctly into metadata?
From: Andy C (anonymous_at_discussions.microsoft.com)
Date: 05/29/04
- Previous message: Eugene Mayevski: "Ann: Secure your internet communication with SecureBlackbox.NET"
- Next in thread: Andy C: "RE: Why compiler won't emit permission XML correctly into metadata?"
- Reply: Andy C: "RE: Why compiler won't emit permission XML correctly into metadata?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 29 May 2004 04:31:02 -0700
Hi.
I have a custom CAS permission class and it's accompanying permission attribute. The permission works fine if used imperatively in my code, but the attribute doesn't work when it's used to decorate the same code. I checked the decorated assembly with ildasm and permview and the permission metadata isnt being emitted into the assembly properly. The custom attribute properties that I wrote do not appear. Only the Unrestricted property is present.
I tried compiling the decorated code again after a reboot and it worked, so I thought I'd try adding yet another property to the permission attribute and seeing if it would appear this time round, but no joy. Is there something wrong with the compiler? It just doesnt seem very concistent in discovering my attributes properties and emitting them as correct XML into the assembly's metadata.
Does anyone have any ideas as to what is happening?
Thanks
Andy C
- Previous message: Eugene Mayevski: "Ann: Secure your internet communication with SecureBlackbox.NET"
- Next in thread: Andy C: "RE: Why compiler won't emit permission XML correctly into metadata?"
- Reply: Andy C: "RE: Why compiler won't emit permission XML correctly into metadata?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]