Session.DisableVersionCheck = true unnecessarily required
I downloaded both the exe and the dll in the same package, so there should not be a version mismatch.
Advertisement
Advertisement
winscp573automation.zip
package contains winscp.exe
version 5.7.3. I've just checked.
winscp.exe
from this package.
Session.DebugLogPath
. Submit the log with your post as an attachment. If you do not want to post the log publicly, you can mark the attachment as private.Please enable debug and session logging and attach a full log files both for successful session and failed one.For information, this problem occurs randomly (it works a lot of the time...).
Session.SessionLogPath
and Session.DebugLogPath
. Submit the logs with your post as an attachment. If you do not want to post the log publicly, you can mark the attachment as private.Advertisement
It's not a bug. You are using an incompatible versions ofHi Was this bug fixed in any of the recent versions. This same error is happening quite frequently for us. We have version 5.5.4.0
winscp.exe
and winscpnet.dll
.
It's not a bug. You are using an incompatible versions ofHi Was this bug fixed in any of the recent versions. This same error is happening quite frequently for us. We have version 5.5.4.0winscp.exe
andwinscpnet.dll
.
Advertisement
Please attach a full debug log file showing the problem (using the latest version of WinSCP).But the versions of each match
Session.DebugLogPath
. Submit the log with your post as an attachment. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.What "same problem"? First, use the latest version of WinSCP. And mainly, use the same version of WinSCP and WinsCP .NET assembly. Basically only the binaries from thesame problem with version 5.7.0,
is there any solution for this?
WinSCP-5.9.4-Automation.zip
package. Or use a NuGet package.
Advertisement
Then we would need a debug log file (In general, everything works fine,
but from time to time I get these errors
(I use it in an app that does many connects and disconnects),
and I think there is something wrong with winscp version retrieval process,
I wouldn't like to update because that would include many changes and
it's a production system
Sessiom.DebugLogPath
) both for successful and failed session (using the latest version of WinSCP).
Advertisement
Thanks for your report. Though I was not able to reproduce this.for some reasons when installing the package for another of the project in the solution. Using the 'Manage NuGet Packages for the solution'
it did created such entry so the WinSCP.exe where not copier in BIN folder.
Hello,
Thank you for your reply,
unfortunately, I can't activate full logs because the process is used in a production context and it's very difficult to reproduce this on a dedicated environment.
I got a look at the source code and it seem's the following command can sometimes return null or empty : "FileVersionInfo.GetVersionInfo(exePath);"
I don't know why.
In a first time, I am going to disable version check, then later i will try to integrate the last version 5.7: "Executable winscp.exe is included in .NET assembly package" --> should resolve my problem... i hope.
Best regards,
Advertisement
I've added both files of the correct version to the projects /bin and /bin/Debug ("everywhere") and I still get the same error.in Visual Studios you must have a copy on WinSCP.exe and WinSCP.DLL copied to you execution (\bin) directory.
5 seconds after posting that, I realized I had mistaken the Solutions bin folder for the projects bin folder.I have an error with no clear answer.
Advertisement
You can post new topics in this forum