Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

WinSCP .NET assembly uses FileVersionInfo.GetVersionInfo(exePath).ProductVersion to check the version.
If you do the same before calling the assembly, what does it return?
ajwride1

The file version of winscp.exe in that directory 5.13.1.8265
martin

Re: Version does not match version of this assembly

Does the file C:\Dev\VisualStudio\OHR_3CX\OHR_3CX_Tests\bin\Release\winscp.exe exists? Does it match winscp.exe of WinSCP 5.13.1?
ajwride1

Version does not match version of this assembly

Hi,

Sorry if this has been asked before but I couldn't find an answer – I have recently upgraded my C# app to use the latest version of winscp via upgrade in NuGet. (5.13.1)

Since upgrading when I run my tests I get the following exception:
WinSCP.SessionLocalException: The version of C:\Dev\VisualStudio\OHR_3CX\OHR_3CX_Tests\bin\Release\winscp.exe () does not match version of this assembly C:\Dev\VisualStudio\OHR_3CX\OHR_3CX_Tests\bin\Release\WinSCPnet.DLL (5.13.1.0)

I've tried uninstalling and reinstalling. I've done a complete rebuild on the project. I've downgraded the version using nuget and still no joy.

Can you offer any suggestions of anything else to try or let me know if I'm being stupid - really appreciate your help.

Thanks in advance