Detailed connection failure info

Hi


we are using Aspose.Email version 3.2.1.0 to download email server, for both IMAP and Exchange. In case there is a connection failure, is there any way to know what is wrong? More specifically, I want to know whether it is
  • wrong URL, port, use SSL, server shut down or other server issues
  • wrong user name
  • wrong password
I would like it to be as specific as possible. Thanks.

Xu

Hi Xu,

I am afraid to share that there isn’t specific details available for each of your scenario. However, after few tests, here are the details that could be helpful to you in this regard.

ImapClient Details

  1. When URL is wrong, following exception is raised:
a. IOException

b. Message = NameResolutionFailure

c. InnerException = NULL
  1. When port number is wrong, following exception is raised:
a. IOException

b. Message = NameResolutionFailure

c. InnerException = A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 173.194.66.109:994
  1. When User name is wrong
a. IMapException

b. Message = 005 BAD LOGIN already in progress.
  1. When password is wrong
a. IMapException

b. Message = 005 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)
  1. Imap.EnableSsl = false
a. IMapException

b. Message = Command Failure
  1. imap.SecurityMode = Aspose.Email.Imap.ImapSslSecurityMode.Explicit
a. ReadLinesTimeoutException

b. Message = An imap command couldn't be processed within 100000 ms

Exchange Server Details

  1. Exchange URL is wrong
a. WebException

b. Message = The request failed with HTTP status 404: Not Found.
  1. User name is wrong
a. WebException

b. Message = The request failed with HTTP status 401: Unauthorized
  1. Password is wrong
a. WebException

b. Message = The request failed with HTTP status 401: Unauthorized`