Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Loading dll of same assembly name

$
0
0
In my application, I have two assemblies(third party) of different versions , publickeytoken but same assembly name in different app paths. For some of my projects the lower version of that dll is required and for some other higher version of that dll is needed. I have referred these two dll where ever it is needed. While compiling it doesn't throw any error. But in runtime i'm getting the following exception
    "Could not load file or assembly 'AssemblyName, Version=x.x.x.x, Culture=neutral, PublicKeyToken=xxxxxxx' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"
Is there any way to load assembly by considering all four parameters?

Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>