Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.6k views
in .NET FTP by
I use edtftpnet 1.1.9 in my program, everything seems fine. now I update it to edtftpnet 1.2.0, then I got this error:

ftp = New FTPClient(cServer, intPort)
-----------------------------------------------------
FTPClient(string, integer) obsolete.

Then, what I should use now? In the demo, it still uses ftp = New FTPClient(string, integer), however, the VS2003 reported this error too.

Who knows what is the problem?

thanks

3 Answers

0 votes
by (162k points)
It's a compiler warning that this constructor is now obsolete. You should use the default constructor and properties to set the remote host etc now.

We will update the demo.

I use edtftpnet 1.1.9 in my program, everything seems fine. now I update it to edtftpnet 1.2.0, then I got this error:

ftp = New FTPClient(cServer, intPort)
-----------------------------------------------------
FTPClient(string, integer) obsolete.

Then, what I should use now? In the demo, it still uses ftp = New FTPClient(string, integer), however, the VS2003 reported this error too.

Who knows what is the problem?

thanks
0 votes
by (400 points)
What is the default constructor and what are its properties and where can I find information on this.

Thanks,
Jim
0 votes
by (162k points)
See the API documentation.

The default constructor is FTPClient() with no args.

Then use the RemoteHost property, for example, to set the remote host.

What is the default constructor and what are its properties and where can I find information on this.

Thanks,
Jim

Categories

...