Specific information is
Visual Studio 2012
.Net Framework 4.5
Renamed WinSCP.dll to WinSCPnet.dll
WinSCP.exe, WinSCP.dll and WinSCPnet.dll are in Bin directory. -> see https://winscp.net/forum/viewtopic.php?t=11808 for reason for 3 dlls
WinSCPnet.dll is correctly registered in Project and Project is compiling.
I am able to access and use the site by connecting directly with the WinSCP.exe, but when I attempt to use the .net dll, I get the following error.
System.OverflowException was caught
Message=Arithmetic operation resulted in an overflow.
at WinSCP.ConsoleCommStruct..ctor(Session session, SafeFileHandle fileMapping)
at WinSCP.Session.Open(SessionOptions sessionOptions)
at Scantron.IPaper.BL.FtpDownload.TestConnection() in c:\Projects\BST Clients Direct\Scantron\IPaper\IPaperRinconBridge\FtpCsvBL\FtpDownload.cs:line 64
If you would be good enough to post up the source for the WinSCP.dll I would be more than happy to do a push to try to fix this problem