martin wrote:
paulo_oli wrote:
Hi prikryl, how is it going?
After I set Session.DegugLogPath I received the error "Object reference not set to an instance of an object" in session.open command.
Please post sample of the code.
using (Session session = new Session())
{
// Connect
session.DisableVersionCheck = true;
session.Timeout = new TimeSpan(0, 2, 0);
session.SessionLogPath = @"C:\TEMP\logWinSCP";
session.ExecutablePath = @"C:\Projetos\tools\WinSCP\WinSCP.exe";
session.IniFilePath = @"C:\Projetos\tools\WinSCP\WinSCP.ini";
session.DebugLogPath = @"C:\TEMP\logWinSCP";
session.Open(sessionOptions);