“System.IO.FileLoadException: Could not load file or assembly \”System.Windows.Interactivity, Version=22.214.171.124, Culture=neutral, PublicKeyToken=31bf3856ad364e35\” or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)”:”System.Windows.Interactivity, Version=126.96.36.199, Culture=neutral, PublicKeyToken=31bf3856ad364e35″
Looking in my solution explorer I can see I have referenced System.Windows.Interactivity, Version=188.8.131.52
But why does he complaint that version 184.108.40.206 is not found. The short answer for the problem is that another referenced library references itself System.Windows.Interactivity with version 220.127.116.11. Therefore, because version 18.104.22.168 is loaded by the version 22.214.171.124 is not found.
The solution is to configure a assemblyBinding in app.config.
This is done as follows:
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Windows.Interactivity" publicKeyToken=31bf3856ad364e35" culture=neutral" /> <bindingRedirect oldVersion="0.0.0.0-126.96.36.199" newVersion="188.8.131.52" /> </dependentAssembly> </assemblyBinding>