DLL looking for wrong version

  • Thread starter Thread starter Randy Sims
  • Start date Start date
R

Randy Sims

Guest
Hello,

I have developed a class that uses WinSCPnet.dll in Visual Studio 2015. While troubleshooting why it was looking for the wrong dll, I added the Nuget for it, getting the most recent version. The version we are using is actually a few before that, so I uninstalled the latest (using Nuget) and installed the version I want. Now, when it runs, it is looking for the newest version.


System.IO.FileLoadException: Could not load file or assembly

'WinSCPnet, Version=1.6.5.9925, Culture=neutral, PublicKeyToken=2271ec4a3c56d0bf'

or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.

(Exception from HRESULT: 0x80131040)



I have tried searching the registry, gacutil /u (which ran successfully and removed the dll but I still get this message), cleaned the project and rebuilt, deleted everything in bin and obj and rebuilt - what am I missing?

Thanks!

Continue reading...
 
Back
Top