NullReferenceException on Disconnect (General questions)

by nhird, (6916 days ago)

I am working on a windows service that will connect to an sftp site and download files. I have written a test app to help test my code. I get a NullReferenceException after calling the Disconnect method. Basically, i connect to an ftp site, download files with the GetFiles method and disconnect. When calling disconnect i get the error. I am unable to trap this error as well.

locked

Complete thread: