AtmaWeapon
06-29-2007, 08:26 AM
I'm tracking down an elusive bug through a lot of libraries, and to help with debugging I've added lots of trace statements. Most of the time, when I take great care to put all of the files in a specific place and build in the right order, everything works out OK.
But sometimes things don't play nice. The most crucial DLL happens to be our product's Common dll; the release version is installed in the GAC. My understanding and assumption was that if I placed a debug DLL in the same directory as the application, it would bind to the local copy instead of the one in the GAC. Instead, I'm loading the GAC every time.
It's not possible to uninstall the version in the GAC. There are other components independent of my project that must be functional, and they rely on this dll as well.
I know there's probably some mucking about with a config file I should do, but doing a little research is not proving successful. How do I make the application prefer the local DLL over the one in the GAC?
But sometimes things don't play nice. The most crucial DLL happens to be our product's Common dll; the release version is installed in the GAC. My understanding and assumption was that if I placed a debug DLL in the same directory as the application, it would bind to the local copy instead of the one in the GAC. Instead, I'm loading the GAC every time.
It's not possible to uninstall the version in the GAC. There are other components independent of my project that must be functional, and they rely on this dll as well.
I know there's probably some mucking about with a config file I should do, but doing a little research is not proving successful. How do I make the application prefer the local DLL over the one in the GAC?