Well, I tried to work around it by annotating the method with the PermissionSetAttribute and pointing it to an xml file containing a serialized permission set containing two StrongNameIdentityPermissions; but the result was the same - an empty permission set in the assembly.
FWIW - I get the same behavior using vb.net. At any rate, seems like a bug to me. Either we're not supposed to be trying to apply more than one StrongNameIdentityPermissionAttribute to a single method (in which case, the docs and the compiler should be complaining); or it's supposed to be supported and the compilers are silently botching the job. -Mike http://staff.develop.com/woodring http://www.develop.com/devresources ----- Original Message ----- From: "Mike Woodring" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 12, 2002 2:14 PM Subject: Re: [DOTNET] StrongNameIdentityPermissionAttribute with Security. Demand Confus ion > He he - I almost posted a note just like yours :-) Then I realized my top > level test app should have caused a failure and didn't... > > -Mike > http://staff.develop.com/woodring > http://www.develop.com/devresources > > ----- Original Message ----- > From: "Jason Bock" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, April 12, 2002 1:59 PM > Subject: Re: [DOTNET] StrongNameIdentityPermissionAttribute with Security. > Demand Confus ion > > > > On Fri, 12 Apr 2002 13:55:26 -0600, Mike Woodring <[EMAIL PROTECTED]> > > wrote: > > > > >I tried that and, oddly enough, if you put more than one > > >StrongNameIdentityPermissionAttributeon a method, the compiler produces > an > > >empty permission set. Looks like a bug to me, but I have to stop looking > > at > > >it for a while... > > > > Hmmm...you're right. That is suprising at first glance. Guess I posted > > too soon ;). > > > > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or > > subscribe to other DevelopMentor lists at http://discuss.develop.com. > > > > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.