Hi,
When I use GetMailboxSize() method, I’ve got negative value: -574884297 bytes (~0.5 GB). When I check in the OWA, I see that my mailbox’s actual size is 18 GB. (I’ve tried with multiple mailboxes, but I always got negative value…)
Could you help me, what is go wrong.
Thank you in advance.
Gabor
static void Main(string[] args)
{
try
{
License lic = new License();
lic.SetLicense("Aspose.Total.lic");
NetworkCredential credentials = new NetworkCredential(ConfigurationManager.AppSettings["Username"], ConfigurationManager.AppSettings["Password"], ConfigurationManager.AppSettings["Domain"]);
using (IEWSClient client = EWSClient.GetEWSClient(ConfigurationManager.AppSettings["EwsUri"], credentials))
{
Console.WriteLine("Size: {0} bytes", client.GetMailboxSize(client.GetMailboxInfo().MailboxUri));
}
}
catch(Exception ex)
{
Console.WriteLine("Error: {0}", ex.Message);
}
Console.ReadLine();
}