Re: Assigning a Permission Set to an Assembly
From: Shawn Farkas [MS] (shawnfa@online.microsoft.com)
Date: 01/18/03
- Next message: Shawn Farkas [MS]: "Re: Microsoft .NET Framework Wizard - crashes"
- Previous message: Shawn Farkas [MS]: "Re: Assigning a Permission Set to an Assembly"
- In reply to: Lee Gillie: "Re: Assigning a Permission Set to an Assembly"
- Next in thread: Lee Gillie: "Re: Assigning a Permission Set to an Assembly"
- Reply: Lee Gillie: "Re: Assigning a Permission Set to an Assembly"
- Reply: Michel Gallant (MVP): "Re: Assigning a Permission Set to an Assembly"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Shawn Farkas [MS]" <shawnfa@online.microsoft.com> Date: Fri, 17 Jan 2003 15:02:49 -0800
Hi Lee,
The tool to generate the key pairs is sn.exe, you can invoke "sn -k
mykey.snk" to create a keypair for your assembly. The attribute you are
looking for is called AssemblyKeyFile. It is not required that you place
your assemblies in the GAC in order for the strong name membership condition
to work.
Can you provide more details on the error you are encountering? Thanks.
-Shawn
-- This posting is provided "AS IS" with no warranties, and confers no rights. Please do not send email directly to this alias, this alias is for newsgroup purposes only. "Lee Gillie" <ANTISPAMIFICATION_lee@odp.com> wrote in message news:#mcYQLmvCHA.2596@TK2MSFTNGP11... > Peter - > > I still don't have it working myself, but I think I know what is > SUPPOSED to happen, so will share that much. If you use VSVARS32.BAT > to assign your command line environment variables. Set default folder > to where your sources are. Then use the tool to generate public and > private keys (.key file as I recall). I beleive this is a one-time > thing, somewhat like making guids. Then there is an ASSEMBLY attribute > you can include in one of the sources for the assembly, which > references the key file. Once you do this, then you can use the STRONG > NAME as the EVIDENCE for your code, which is the assembly. You browse > the assembly. The .NET Framework Configuration tool will then fill in > the public part of the key for you, and offer to also optionally > (additionally) verify by the assembly name, and even the version if > you like. I have dependent assemblies, as well, and these ALSO need > the keys, before the calling assembly can be configured. I moved them > both to the GAC (before configuring), but I don't know that is > required. I'm not sure what happens after this, because when I do this > it will either NOT LOAD the assembly, or else it WILL LOAD, but > corrupt the configuration database. Sorry I can't help you more. > Maybe someone who has been successful can add or correct anything I > have here. > > Best regards - > Lee Gillie > Spokane, WA > > "Peter Singer" <petes@knorrassociates.com> wrote in message > news:u27iH6jvCHA.1244@TK2MSFTNGP12... > > Is there a way to assign a permission set to a particular assembly? > I know I > > can configure an assembly via the Microsoft.NET Framework > Configuration. But > > this lets me define the binding policy and a codebase, not assign it > a > > permission set. There doesn't seem to be a Membership Condition for > an > > assembly. Can something be done with > > the "Custom" condition type? I guess giving it a Strong Name is > another > > option? > > > > > >
- Next message: Shawn Farkas [MS]: "Re: Microsoft .NET Framework Wizard - crashes"
- Previous message: Shawn Farkas [MS]: "Re: Assigning a Permission Set to an Assembly"
- In reply to: Lee Gillie: "Re: Assigning a Permission Set to an Assembly"
- Next in thread: Lee Gillie: "Re: Assigning a Permission Set to an Assembly"
- Reply: Lee Gillie: "Re: Assigning a Permission Set to an Assembly"
- Reply: Michel Gallant (MVP): "Re: Assigning a Permission Set to an Assembly"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|