Backup users mailsboxes

Hi guys! I need help in backup user’s mailboxes from Exchange to PST.
I create user “admin”. He has full acceess permissions for mailboxes. I can get emails but I can’t backup mailbox to pst. I write:

ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack;
string serverAddress = @“exchange2007.mailserver.com”;
ExchangeWebServiceClient client = new ExchangeWebServiceClient(“https://” + serverAddress + “/ews/Exchange.asmx”, “admin”, “password”);
ExchangeMailboxInfo mailboxInfo1 = client.GetMailboxInfo(@“user1@mailserver.com”);
ExchangeMessageInfoCollection msgCollection = client.ListMessages(mailboxInfo1.InboxUri);
ExchangeFolderInfo info = client.GetFolderInfo(mailboxInfo1.InboxUri);
ExchangeFolderInfoCollection fc = new ExchangeFolderInfoCollection();
fc.Add(info);
System.IO.MemoryStream st = new System.IO.MemoryStream();
client.Backup(fc, st, Aspose.Email.Outlook.Pst.BackupOptions.None);

program is stopped in System.IO.MemoryStream st = new System.IO.MemoryStream();
client.Backup(fc, st, Aspose.Email.Outlook.Pst.BackupOptions.None);

Hi Albert,


Could you please try the overloaded method ListMessages(URI, NumberOfMessages) with a limited number of messages (such as 5). If your mailbox has large number of messages, this will give us an idea if the ListMessages is working properly by retrieving the minimum number of messages specified. Meanwhile, I am investigating the issue further.

Hi Albert,


After further investigation, I was able to reproduce this issue at my end using the latest version of Aspose.Email for .NET 3.3.0 and have logged it as issue id: NETWORKNET-34077 in our bug tracking system for further consideration by the development team. Once the issue is resolved and fix version is available, you’ll be notified automatically via this thread.

Hi! I’ve tried this bug under debugger and it cycling in Certificate Checking.

Hi Albert,


Thank you for the additional information. As the issue has already been logged for investigation, we’ll update you as soon as there is some information available in this regard.

The issues you have found earlier (filed as NETWORKNET-34077) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Thank you very much!