Re: COM-enabled assembly

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Klaus H. Probst (usenet001_at_vbbox.com)
Date: 06/23/04


Date: Wed, 23 Jun 2004 10:16:27 -0700


"Joe H" <jharri@hotmail.com> wrote in message
news:OpUFWnSWEHA.1760@TK2MSFTNGP10.phx.gbl...

> 1. i don't know what happens to the app.config file when i put the
assembly
> into the GAC. does gacutil find the app.config file and copy it to the
GAC
> also? or do i have to manually find the path of the assembly in the GAC
and
> then put the app.config file there?

It should be in the same directory as the assembly that initiates the
*process*, which takes us to your next question...

> 2. also, while researching this issue, i have come across several
newsgroup
> threads indicating that the app.config file will not work for DLL
assemblies
> anyway.

... yep. Configuration files are not used for DLLs; they are loaded only for
processes.

-- 
Klaus H. Probst, MVP
   http://www.vbbox.com/


Relevant Pages

  • Re: How can I use a dll with several programs?
    ... with the GAC is the possibility of a new version of a .dll unintentionally ... Maintaining backwards compatibility of a .dll by keeping ... largely removed DLL Hell from the Windows programming radar. ... 50% based on incorrect registry entries and since .NET assemblies don't ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How can I use a dll with several programs?
    ... The dll hell has everything to do with versioning of dll`s stored in one ... I don't think the DLL applies to the GAC or the Win32 Side-by-Side cache ... mechanism for Win32 assemblies. ... You should share assemblies by installing them into the global assembly ...
    (microsoft.public.dotnet.languages.vb)
  • Re: .NET versioning
    ... >> If this isn't dll hell then it's awfully close. ... > xcopy deployment, which thus means avoid the GAC if possible. ... > 2) if required, and if you really have to, copy the files to the GAC. ... If you overwrite assemblies in the GAC ...
    (microsoft.public.dotnet.framework)
  • Re: How can I use a dll with several programs?
    ... with the GAC is the possibility of a new version of a .dll unintentionally ... Maintaining backwards compatibility of a .dll by keeping its ... largely removed DLL Hell from the Windows programming radar. ... 50% based on incorrect registry entries and since .NET assemblies don't ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Assembly Versioning for Multiple Frameworks and Platforms
    ... Does anyone happent to know if the 64-bit GAC is also ... version number for each framework build. ... what tool do you use to make your 1.0 assemblies? ... We use a naming scheme in the dll for the versions. ...
    (microsoft.public.dotnet.framework)