Re: How to do LinkDemand for StrongNameIdentityPermission on ASSEMBLY level???
From: Eugene V. Bobukh [MS] (eugenebo_at_online.microsoft.com)
Date: 04/27/04
- Next message: Guillermo Proano [MS]: "RE: SignedXml to X509Certificate?"
- Previous message: Sasidhar: "RE: Remoting in VB.net with examples! needed"
- In reply to: Brad Raulston: "Re: How to do LinkDemand for StrongNameIdentityPermission on ASSEMBLY level???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 27 Apr 2004 11:36:13 -0700
Unfortunately, RequestMinimum has a little bit different effect. It means "Run my assembly ONLY if it is signed with the mentioned StrongName key". It will not prevent somebody else with different key from linking to the assembly if it is able to run.
I believe there is no way to achieve such assembly level protection. As an alternative, consider using class level LinkDemand, it has the closest effect to what you need in terms of scope.
-- Eugene V. Bobukh This message is provided "AS IS" with no warranties, and confers no rights. Any opinions or policies stated within it are my own and do not necessarily constitute those of my employer. ---- "Brad Raulston" <brad._NoSpam_demandstream.net> wrote in message news:%234DSGCWKEHA.808@tk2msftngp13.phx.gbl... > You can't use LinkDeamand at the Assembly level, instead use > "SecurityAction.RequestMinimum" > > Brad > > "Tobias Lekman" <tobias@lekman.com> wrote in message > news:O0pfcMTKEHA.1156@TK2MSFTNGP09.phx.gbl... > > Hi, > > > > Is it possible to do a > > "StrongNameIdentityPermission(SecurityAction.LinkDemand" on assembly > level, > > maybe by doing this in the AssemblyInfo.cs?? > > > > Thanks, > > > > Tobias > > > > > >
- Next message: Guillermo Proano [MS]: "RE: SignedXml to X509Certificate?"
- Previous message: Sasidhar: "RE: Remoting in VB.net with examples! needed"
- In reply to: Brad Raulston: "Re: How to do LinkDemand for StrongNameIdentityPermission on ASSEMBLY level???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]