0 votes
by (750 points)
edited by

I get the following issue in my log file :-

Error OutPut

--------------------------------------- 5/12/2015 8:11:15 PM ---------------------------------------

InnerException = No Inner Exception Found
Message = Timeout exceeded.
Source : Rebex.Imap

at Rebex.Net.Imap.PL()
at Rebex.Net.AN.JB(Byte[] A, Int32 B, Int32 C)
at Rebex.Net.AN.GB(Int32& A) at Rebex.Net.Imap.HU()
at Rebex.Net.Imap.FU(String A, ArrayList B)
at Rebex.Net.Imap.CM(String A, ZM B, String C, Boolean D)
at Rebex.Net.Imap.LU(ImapMessageSet A, Int32 B, UInt32 C, Boolean D, String E) 
at Rebex.Net.Imap.MU(ImapMessageCollection A, ImapMessageSet B, Int32 C, UInt32 D, Boolean E, String H, Int64 I)
at Rebex.Net.Imap.MV(ImapMessageSet A, ImapListFields B, ImapSearchParameter[] C)
at Rebex.Net.Imap.Search(ImapMessageSet messageSet, ImapListFields fields, ImapSearchParameter[] parameters)
at Rebex.Net.Imap.Search(ImapSearchParameter[] parameters)
at IQEmailExtractor.Program.ConnectToEmailServer(List`1 objLstGenericInvoicesImport, String GroupID, StringBuilder strLogFileBuilder)

TargetSite : Void PL()
HelpLink : No HelpLink Found

---------------------------------------5/12/2015 8:11:15 PM ---------------------------------------

Below is my code :-

Imap objImapClient = new Imap();
objImapClient.Connect(Convert.ToString(System.Configuration.ConfigurationManager.AppSettings["MailingServerName"]), Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["ImapPort"]), _security);
                        objImapClient.Login(objGenericInvoicesImport.EmailID.ToLower().Trim(), objGenericInvoicesImport.Password);


objImapClient.SelectFolder(System.Configuration.ConfigurationManager.AppSettings["SelectedFolder"].Trim());
                            ImapMessageCollection ImapMsgCollection = objImapClient.Search(ImapSearchParameter.Not(ImapSearchParameter.Deleted));

 MailMessage objMailMessage = new MailMessage();

                                        objMailMessage = objImapClient.GetMailMessage(v.UniqueId);

Please tell me first why I get this error on my production server??What is its cause??

Please tell me where in the code i get this issue or at which line i get this issue ??

Please tell what can be done for the above issue???what is wrong??

Applies to: Rebex Secure Mail

1 Answer

0 votes
by (58.9k points)

The ImapException "Timeout exceeded." occurs when the client does not get response from the server within the specified timeout limit (default is 60 seconds).

In your case the timeout occurred within the Imap.Search method.

As usual we would need a log of communication to be able to tell more.

...