Hi all!
Can anyone please answer this question?
I want to now if it's possible to use the oldversion of .dll file (which it should do) when redirecting to new version.
The error I get is down below:
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembl
y 'Version_One, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a2af2b43a05a77c
6' or one of its dependencies. The located assembly's manifest definition does n
ot match the assembly reference. (Exception from HRESULT: 0x80131040) ---> Syste
m.IO.FileLoadException: Could not load file or assembly 'Version_One, Version=1.
0.0.0, Culture=neutral, PublicKeyToken=a2af2b43a05a77c6' or one of its dependenc
ies. The located assembly's manifest definition does not match the assembly refe
rence. (Exception from HRESULT: 0x80131040)
--- End of inner exception stack trace ---
at MainProgram.Program.Main(String[] args)
Press any key to continue . . .
The app.config file is this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Version_One" culture="neutral"
publicKeyToken="a2af2b43a05a77c6"/>
<bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0"/>
<publisherPolicy apply="no" />
</dependentAssembly>
<probing privatePath="version_control;version2;bin2\subbin;bin3"/>
</assemblyBinding>
</runtime>
</configuration>
Please help! And yes, I have added .snk on the Version_One class library project folder, so that I could generate the public key.
Does this have to do with the latest version not having backward compatibility? I'm really lost unfortunately :(
Thanks!