Search code examples
c#clrgacfusion

DLL hell resolution is not working as expected in CLR


I am using two Console applications A1.exe and A2.exe using ClassLibrary version 1.0.0.0 and 2.0.0.0 respectively,i have the respective class libraries installed in GAC as shown in the screen shot but when I run "A1.exe" it fails to find the version 1.0.0.0,the exact error is in the screen shot ,

DLL HELL problemwhy is that?how to fix the problem?


Solution

  • You are linking to non-strongly-signed assembly. So it can't come from GAC and will try to load local version.

    Fix - link to correct assembly.