Re: What does <assemblies> session do in Web.config



The <assemblies> section is used to add an assembly reference to be used
during compilation. If you need to share your assembly across multiple
applications it must have a strong name (this means embedding a long public
key in the assembly definition). The public key is part of the identity of
the assembly. When other assemblies reference your strongly named assembly
they use a shortened version of the full public key called public key token.

For more info on the <assemblies> section see here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfassemblies.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfASPNETConfigurationSectionSchema.asp

Regards,

Plamen Ratchev
http://www.SQLStudio.com


"ad" <flying@xxxxxxxxxxxxxxx> wrote in message
news:usDw2NKJHHA.2236@xxxxxxxxxxxxxxxxxxxxxxx
I find an assemblies section in web.config.
There are some PublicKey in it.
What do these PublicKey do?
What does <assemblies> session do?




<assemblies>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089" />
</assemblies>



.



Relevant Pages

  • Re: When to use Public/Private Key & when to gen new one?
    ... The key pair is uniquely bound to each other: you can't have one private key ... options for extracting the public key, but not one for 'build new public key ... I was including in assemblies whatever it had spat one ... probably keep the same snk file across various builds of an assembly, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: problem with StrongNameIdentityPermissionAttribute
    ... I suppose this because it doesn't matter If I use the public key ... key blob (the one from my assemblies) or the right one (from Microsoft WSE ... Request for the permission of type ... > not perform any checks at all, it is used to modify stack walk behavior. ...
    (microsoft.public.dotnet.security)
  • Re: how to ensure only strong name assemblies are loaded with matching public key
    ... assembly for introspection, which means that you can inspect its metadata (including the public key), but cannot execute any code. ... >Subject: Re: how to ensure only strong name assemblies are loaded with matching public key ... >assumption is that one would load an assembly to use it, ... >>>special directory containing updates to the client software. ...
    (microsoft.public.dotnet.security)
  • Re: Another StrongNameIdentityPermission/LinkDemand question
    ... If you are planning to do this to "keep the honest people honest", ... serve as a mild deterrent. ... public key and achieve my original purpose that way. ... caller only trusted assemblies, and it seems like this should work. ...
    (microsoft.public.dotnet.security)
  • RE: ilasm and delayed signing
    ... We can use the al and sn tool to do the delay sign. ... you must have access to the public key. ... option specifies the name of the key file containing the public key to use ... Note that strong-named assemblies contain version information that the ...
    (microsoft.public.dotnet.framework.interop)