Arithmetic Overflow
Specific information is
Visual Studio 2012
.Net Framework 4.5
WinSCP 5.1.1
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
HResult=-2146233066
Message=Arithmetic operation resulted in an overflow.
Source=mscorlib
StackTrace:
at System.IntPtr.ToInt32()
at WinSCP.ConsoleCommStruct..ctor(Session session, SafeFileHandle fileMapping)
at WinSCP.ExeSessionProcess.AcquireCommStruct()
at WinSCP.ExeSessionProcess.InitializeConsole()
at WinSCP.ExeSessionProcess.Start()
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
InnerException:
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