1
Vote

Error while using fetch.MessageObject

description

Please help I am getting the below mentioned error
Length cannot be less than zero.\r\nParameter name: length
for (int imsg = 1; imsg <= mailFolder.MessageCount; imsg++)
                            {
ActiveUp.Net.Mail.Message message = fetch.MessageObject(imsg);
 
}
I am getting the error while trying to download the emails from gmail.com
 
StackTrace " at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean
fAlwaysCopy)\r\n at System.String.Substring(Int32 startIndex, Int32 length)\r\n at ActiveUp.Net.Mail.Fetch.UidHeaderString(Int32 uid)\r\n
at ActiveUp.Net.Mail.Fetch.UidHeader(Int32 uid)\r\n
 
Please help
 
Thanks
Ajai

comments