Today I had a problem with the assembly mismatch, and after a little digging, I found that for a particular DLL, the actual link in the project was made to some other version and
The config file for this project showed a dependency on some other version of the same DLL.
Exp.
<dependentAssembly> <assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" /> <bindingRedirect oldVersion="2.0.1.4000" newVersion="2.1.2.4000" /> </dependentAssembly>
I removed the dependency declaration for this assembly from the configuration file and voila! I was able to run again :-)
My question is
When are the <dependentAssembly>
declarations made in the project configuration file? Do we add them manually? And in what scenario?
iniki source share