Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

realkewl

Re: object rerefence not set using vb.net

martin wrote:

You must be getting an exception. The Session.GetFiles exits immediately without doing anything.

Can you show us an exception callstack? (with or without the Session.DebugLogPath set)


Funny thing is it's not throwing an exception. I'm outputting any errors to the console. But I just get transfer complete.

I'll try again tomorrow.

Thanks
martin

Re: object rerefence not set using vb.net

You must be getting an exception. The Session.GetFiles exits immediately without doing anything.

Can you show us an exception callstack? (with or without the Session.DebugLogPath set)
realkewl

Re: object rerefence not set using vb.net

martin wrote:

Please attach a full debug log file showing the problem (using the latest version of WinSCP).

To generate log file, set 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.


Ok after enabling debuglogpath I no longer get the object reference error. The program seems to run fine without errors but I do not see where the ftp file is being downloaded.

So, basically, it thinks it has downloaded a file, but I'm not seeing it.

Log file attached.
martin

Re: object rerefence not set using vb.net

Please attach a full debug log file showing the problem (using the latest version of WinSCP).

To generate log file, set 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.
realkewl

object rerefence not set using vb.net

Hello All,

I'm using VS2013 and WinSCP 5.7.6 that I download/installed from NuGet.

protocol: FTP

The app connects to a FTP server I can run the app on my computer, Windows 8.1.

Here's are the steps I take
Connect
List Directory
Find latest file
Download file (Transfer Mode Binary, Do not delete file)

However, once I deploy to Windows 2012 machine and try to run I get
an "object reference not set" when it tries to download the file.

I made sure that the local path permissions allows everyone full control.

So, not sure what problem could be.

Thanks,
Ray