19. December 2009 00:16
I regularly encounter this exception. In many examples it occurs when working with Nhibernate
It’s actually pretty easy to solve if you now what to do. You have to add the following to your appconfig or your webconfig:
<assemblyIdentity name="NHibernate" publicKeyToken="AA95F207798DFDB4" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-220.127.116.1100" newVersion="18.104.22.16800"/>
In many cases when this happens you will get a warning when you compile. If you double click the specific warning. Visual Studio will try to generate the above code in your config file. It doesn’t always work, but it’s still pretty cool.
That’s all for now and remember
Only a sith deals in absolutes