ftpErrorNoOperation on _ftp.connect()

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
Post Reply
Lavi
Posts: 5
Joined: Thu May 13, 2010 7:01 am

ftpErrorNoOperation on _ftp.connect()

Post by Lavi » Sun May 23, 2010 3:20 pm

well, Its very simple. I'm using the sample code without any modifications. when calling connect I recieve an enumError reply of ftpErrorNoOperation.

U guys have an Idea what I'm doing wrong here?

thanks alot,
Lavi

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: ftpErrorNoOperation on _ftp.connect()

Post by mb » Sun May 23, 2010 5:22 pm

Take a look at the log file. Set the LogFile.File property.

Lavi
Posts: 5
Joined: Thu May 13, 2010 7:01 am

Re: ftpErrorNoOperation on _ftp.connect()

Post by Lavi » Mon May 24, 2010 6:56 am

so here's the thing:

When I use _ftp.LogFile.File = "DotNetInteropDemo.log";

I get: "InvalidCastException was unhandled"

"unable to cast COM object of type 'System.___ComObject' to interface type 'sfFTPLib.ILogFile'. This operation failed because the QueryInterface call on the COM component for the interface with IID'blabla' failed due to the following error: No such interface supported. ( exception from HRESULT blabla (E_NOINTERFACE ))"

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: ftpErrorNoOperation on _ftp.connect()

Post by mb » Mon May 24, 2010 2:53 pm

You seem to be using an old version of the FTP Library. In the old version the property is just "LogFile":
_ftp.LogFile = "DotNetInteropDemo.log";

Alternatively install the latest version from here:
https://www.smartftp.com/ftplib/download
Then use the samples that come with this package.
Last edited by mb on Mon May 24, 2010 3:40 pm, edited 1 time in total.

Lavi
Posts: 5
Joined: Thu May 13, 2010 7:01 am

Re: ftpErrorNoOperation on _ftp.connect()

Post by Lavi » Tue May 25, 2010 8:13 am

I'm pretty sure its the latest version because I downloaded it a week ago.

but I'll reinstall it.

Could all these problems be because i'm trying to develop on a standalone computer with no internet? ( after I purchase the lib, I need it to work on an offline network dissconnected from the internet ).
Last edited by Lavi on Tue May 25, 2010 8:13 am, edited 1 time in total.

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: ftpErrorNoOperation on _ftp.connect()

Post by mb » Tue May 25, 2010 11:58 am

No your lack of Internet connectivity has nothing to do with it.

Lavi
Posts: 5
Joined: Thu May 13, 2010 7:01 am

Re: ftpErrorNoOperation on _ftp.connect()

Post by Lavi » Thu May 27, 2010 8:36 am

OK, I installed the latest version and it works. Thanks.

Post Reply