i have created a DLL in vb.net which exposes its functionality to COM
clients.
the vb.net DLL has an app.config file because it has URLBehavior = Dynamic
for a number of web references it uses.
now, if the VB6 client that uses the assembly, the assembly itself, and the
app.config file are all in the same directory, then everything works with no
problem.
however, the assembly is a "tools" component, and will be consumed by
several VB6 clients. so, i need to put the assembly into the GAC. however,
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?
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.
would appreciate any comments/input on either or both of the above two
items.
thanks,
joe
Klaus H. Probst - 23 Jun 2004 18:16 GMT
> 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.

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