I have Windows forms application in C#. I am in need to make use of the below dll.
Interop.SHDocVw.dll The problem is that I need to refer two different versions of this same assembly.
I tried keeping the dll in two different locations & tried to add but not allowing.
Following the below link, I tried to load two version of a assembly on runtime, but somehow not sure how do I do that.
https://www.codeproject.com/Tips/373589/Load-same-assemblies-with-different-versions
This is how my app.config looks like:-
<runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Interop.SHDocVw.dll" publicKeyToken="db7cfd3acb5ad44e" /> <codeBase version="1.1.0" href="...\watin-core\Interop.SHDocVw.dll"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Interop.SHDocVw.dll" publicKeyToken="632609b4d040f6b4" /> <codeBase version="1.3.0" href="...\winforms\Interop.SHDocVw.dll"/> </dependentAssembly>
Currently the exception it is throwing:-
System.IO.FileLoadException: Could not load file or assembly 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' at myApp.AppUI.InitializeComponent() How do I address this?

