Could not load file or assembly Exception
Could not load file or assembly 'Castle.DynamicProxy2, Version=2.1.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.
I'm getting above error because I've Castle.DynamicProxy2, Version=2.2.0.0. Due to some reasons i need to use Castle.DynamicProxy2, Version=2.2.0.0. Any help regards this?
Comments are currently closed for this discussion. You can start a new one.
2 Posted by Devon Lazarus on 27 May, 2010 02:15 PM
This is (unfortunately) fairly common in the open-source world. Luckily, it is a relatively easy fix. You'll need to add an
<assemblyBinding>
attribute to your App.config file telling your app to look for the new version when the old version is requested.Here is an example:
hth,
-devon
3 Posted by Raju on 27 May, 2010 02:31 PM
Thanks Man!!!
4 Posted by Devon Lazarus on 27 May, 2010 10:34 PM
Glad it worked. Don't forget to mark the question resolved in the queue.
Cheers!
-d
James Gregory resolved this discussion on 28 May, 2010 08:39 AM.