Re: Assigning a Permission Set to an Assembly

From: Lee Gillie (ANTISPAMIFICATION_lee@odp.com)
Date: 01/17/03


From: "Lee Gillie" <ANTISPAMIFICATION_lee@odp.com>
Date: Fri, 17 Jan 2003 11:58:49 -0800


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?
>
>



Relevant Pages

  • Re: Locking down CAS policy
    ... they use the $AppDirUrl$ and $CodeGen$ url membership condition - if you want to base everything on strong name - you have to strong name all your pages, code behinds and App_Code files....this can be accomplished by modifying the element to specify a keyfile... ... you shouldn't mock with the existing code groups - they grant the ... "ASP.Net" permission set to code running in you app dir and the temp ... I've used the Evaluate Assembly utility to check the assemblies in ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: regsvr32 error code 0x80004002
    ... assemblies or using shared assemblies before you deploy your applications ... well this puts us app developers in a bind. ... by default we do not use private assemblies or per-application configuration ... Per-application Configuration on Windows XP ...
    (microsoft.public.vc.mfc)
  • Re: Side-By-Side Assembly Loading -- Same App Domain -- 2 versions of same A
    ... Maybe this is significant: ClassLibrary1 contains a ConfigurationSection ... that contains the configuration for BiggerClassLibrary. ... itself uses the configuration to find assemblies, ... public static int StaticMethod ...
    (microsoft.public.dotnet.framework.clr)
  • RE: HTML embbeded (via <object> tag) Strong FullTrust Assemblies fail!
    ... 'Microsoft .NET Framework 1.1 Configuration'. ... > FullTrust permissions when loaded from the Internet zone and can be embedded ... I’ve tried the ‘MyFullTrustAssembly’ assemblies as both exe, ... > I have also tried adding the assembly individually, and not as a code group, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Microsoft.Practices.EnterpriseLibrary.Data manifest mismatch
    ... Configuration Tool) without getting an error now. ... update the assemblies where EntLibConfig.exe is located, ... >> does not match the assembly reference. ... >> baseProviderData(String instanceName) ...
    (microsoft.public.dotnet.framework.adonet)

Quantcast