Hello!
I’m trying to connect to Exchange Server 2007.
IMAP configured correctly on the server.
Test-ImapConnectivity completed successfully:
PS C:\Users\administrator.SPATENT> Test-ImapConnectivity -ClientAccessServer Exch2007-1 -MailboxCredential (Get-Credential SPATENT\fedorov)
CasServer MailboxServer Scenario Result Latency(MS) Error
EXCH2007-1 EXCH2007-1 Test IMAP4 Conn Success 24683,23
ectivity
But I’m getting error in invoke function (ImapMailboxInfo mbi = client.MailboxInfo) : {“Operation has been canceled”} System.Exception {System.OperationCanceledException}
What can be reason of such issue?
ImapClient client = new ImapClient();
client.Port = 143;
client.Host = “…”;
client.Username = “…”;
client.Password = “…”;
try
{
ImapMailboxInfo mbi = client.MailboxInfo;
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}