Private Assemblies & Strong Names??

From: Chris Mohan (ChrisMohan_at_discussions.microsoft.com)
Date: 07/13/04

  • Next message: ringi: "Configuring FormsAuthentication from code"
    Date: Mon, 12 Jul 2004 19:22:01 -0700
    
    

    Hi, I've signed a private assembly with a strong name and have deployed it in a web app's bin directory. Things work fine, yet I recently read you "can't" do this:

    From: http://msdn.microsoft.com/library/en-us/dnnetsec/html/THCMCh09.asp
    "private assemblies... This type of assembly cannot be strong named. Strong named assemblies used by ASP.NET Web applications must be installed in the global assembly cache. This restriction is necessary because of the internal workings of the multi-application domain worker process."
     
    I wonder if this statement is as literal as the wording suggests or if the author is being bombastic. Could it be that the statment really means: "If you want to re-use your assembly in multiple application domains you need to sign it with a strong name and deploy it to the GAC"?

    The code in my signed assembly sends email; I'm currenlty calling the class directly, but I'd like to use declarative security in order to only allow an inputValidation class to call it directly.

    There are various reasons why I prefer not to install these assemblies in the GAC. Is installing them in the GAC really my only option if I want the assembly to have a strong name(even if I really don't need the strong name)?


  • Next message: ringi: "Configuring FormsAuthentication from code"

    Relevant Pages

    • Re: Please explain why the GAC cannot be referenced
      ... A point I'll make here is that the GAC is really intended as a deployment ... So development tools generally don't refer to assemblies ... product install that developers typically don't want on the dev machine. ... reference assemblies from them that happen to be installed to the GAC. ...
      (microsoft.public.dotnet.framework)
    • Re: .NET versioning
      ... >> not* do this yourself because it is a return to Win32 DLL Hell. ... >> The GAC recognises only the .NET version, ... > No install processes, you copy the files. ... For assemblies in the GAC use publisher policy or recompile...this does not ...
      (microsoft.public.dotnet.framework)
    • RE: Install ADO Problem
      ... options to include references. ... one possible workaround is to specify that referenced GAC ... you may need your client to install the related PIA if ... Redistributable Primary Interop Assemblies is available ...
      (microsoft.public.dotnet.languages.vb)
    • Re: Windows Service Install Project
      ... that starts Services that have references to assemblies in the GAC. ... Visual Studio Setup project? ... break my system when I go to install. ...
      (microsoft.public.dotnet.framework.setup)
    • Re: I have seen some fat client Dot Net apps
      ... How do you install the CF SDK if you don't have VS? ... install CF on a device was to write a trivial CF app in VS and install ... "Borland does not have license to ship the CF assemblies. ... assemblies and run the app unchanged on the CF platform. ...
      (borland.public.delphi.non-technical)