Hi, I have an issue in which I would appreciate your help. The scenario is that I am connecting to an FTP server by getting values from Database. In the same method, where i am connecting the FTP with the server, I am also calling the FTP.login(xx,xxx) method. The problem i am facing is that I can keep track of FTP State, whether it is Ready, or Disconnected etc. from the property. But I am unable to know whether the User was logged in successfully or not. I mean if the connection was successful, but for some reason, an error occurred in the Login method, how am i supposed to know whether the user is successfully logged in or not? Thanks in advance !

asked 18 May '10, 11:16

imran's gravatar image

imran
162
accept rate: 0%

edited 10 Aug '10, 13:19

Rebex%20KB's gravatar image

Rebex KB ♦♦
258519


If the Ftp.Login method failed the FtpException is thrown. If no exception is thrown user was successfuly logged in (you don't need to check any log-in status).

link

answered 18 May '10, 13:19

Lukas%20Matyska's gravatar image

Lukas Matyska ♦♦
90117
accept rate: 28%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×152
×1
×1

Asked: 18 May '10, 11:16

Seen: 768 times

Last updated: 23 Mar '11, 08:22