Re: 'System.NullReferenceException' occurred (General questions)
I got the same error when hardcoding the string values.
I am not showing the actual values.
By the way, this same code works when called from a background thread of NUnit. It fails when called from a Windows Form.
uploadServer.sftpClient = new WeOnlyDo.Client.SFTP();
uploadServer.sftpClient.LicenseKey = --- ;
uploadServer.sftpClient.Hostname = 149.59.1.72 ;
uploadServer.sftpClient.Login = --- ;
uploadServer.sftpClient.Password = --- ;
uploadServer.sftpClient.Blocking = true;
uploadServer.sftpClient.Timeout = 60;
uploadServer.sftpClient.RemotePath = remotePath; // has to be set again repeatedly in Upload
uploadServer.sftpClient.Connect();
Complete thread:
- 'System.NullReferenceException' occurred in WeOn - cdrundles, 2008-04-09, 17:32
- Re: 'System.NullReferenceException' occurred - woddrazen, 2008-04-09, 18:27
- Re: 'System.NullReferenceException' occurred - cdrundles, 2008-04-09, 23:22
- Re: 'System.NullReferenceException' - woddrazen, 2008-04-09, 23:33
- Re: 'System.NullReferenceException' occurred - cdrundles, 2008-04-10, 00:13
- Re: 'System.NullReferenceException' - woddrazen, 2008-04-10, 08:39
- Re: 'System.NullReferenceException' occurred - cdrundles, 2008-04-14, 19:21
- Re: 'System.NullReferenceException' - woddrazen, 2008-04-10, 08:39
- Re: 'System.NullReferenceException' occurred - cdrundles, 2008-04-10, 00:13
- Re: 'System.NullReferenceException' - woddrazen, 2008-04-09, 23:33
- Re: 'System.NullReferenceException' occurred - cdrundles, 2008-04-09, 23:22
- Re: 'System.NullReferenceException' occurred - woddrazen, 2008-04-09, 18:27