Re: shimming, signing and multiple assemblies



Hi

I recommend you strongname all the other assemblies, because Types in
strong-named assemblies can be called by partially trusted code only when
the assemblies have been marked with the AllowPartiallyTrustedCallers
attribute (APTCA).

NET Framework Assemblies and the AllowPartiallyTrustedCallers Attribute
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/ht
ml/aptcatypes.asp

That is to say, assume there is a type defined in COMAddin
assembly(strongnamed), and the other assembly, which is not strongnamed
wants to call the type, you must marked the COMAddin assembly with APTCA,
which is not recommended.

But if the other assembly will not call the strongname one, you may just
leave them out.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: Building satellite assemblies where the template is strong named
    ... portion of the strongname it generates an error saying it needs the private ... customers need to be able to build satellite assemblies and I'm not about to ... > public key instead of private key. ... If it is not the case, I strongly recommend you delay signing the ...
    (microsoft.public.dotnet.framework)
  • Re: Assembly.Load fails after assembly preloaded using Assembly.LoadFrom (v1.1.4322)
    ... "avoid LoadFrom as much as possible" is precisely due to issues like this. ... One reason why assemblies already loaded in the LoadFrom context aren't ... > of the same file I'd much rather use the GAC. ... > Create a child code group using strongname permission and import public ...
    (microsoft.public.dotnet.framework.clr)
  • Logging mit selbstcompilieren EntLib Assemblies
    ... Benutze ich die ausgelieferten Assemblies unter .NET References, ... Benutze ich aber die selbst kompilieren Assemblies, die keinen Strongname ... Die gefundene Manifestdefinition der Assembly stimmt ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: shimming, signing and multiple assemblies
    ... > I recommend you strongname all the other assemblies, ... > strong-named assemblies can be called by partially trusted code only when ... > But if the other assembly will not call the strongname one, ... Logger.DLL - public logging classes ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: From ASP.NET 1.1 to 2.0:
    ... your hoster has also set the web sites to partial trust during the update ... Only assemblies that have the [AllowPartiallyTrustedCallers] attribute can ... my hosting partner updated my account from ...
    (microsoft.public.dotnet.framework.aspnet.security)