I have an application referencing the wrong version of Microsoft.Practices.Unity
; it is referencing version 3.5.1.0 instead of version 3.0.0 in visual studio, and the project file there is the correct version. However, during runtime I get an exception about version of Unity not found.
I have tried to clean the solution and rebuild, and created an app.config file to override bindings
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Practices.Unity" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
but the wrong version of the dll is still searched for.