Hi,

I've been using a ConfigFileReader class to suppport per dll .config files.
As long as my assembly was not in the gac I could retrieve the file
successfully using this call:
Assembly.GetExecutingAssembly().CodeBase + ".config"
e.g. c:\myAssembly.dll.config

After putting myAssembly in the gac, the call returns:
c:/winnt/assembly/gac/myAssembly/1.0.0.0__8a939a2ee7fc88b8/myAssembly.dll

How can I get at the original codebase, the one that is also shown in
Properties/General/Codebase of the assembly in the Assembly Cache MMC snap-
in ?

Thanks,
michel.

Reply via email to