Free Support Forum - aspose.com

Moving to exchange2010

Hi

We use Network to attach to exchange to read mails from several mailboxes. We are moving to exchange 2010 and now we receive error 'Method not found' I have learned I need to switch from ExchangeClient to ExchangeWebServiceClient. this works using https://exchange.xxxxx.nl/ews/Exchange.asmx
Only problem is that we used to read several mialboxes with one account, so we opened a connection to exchanged using a username which had read rights on all mailboxes. Using the webservice I seem to be only able to read my own (the service account's) mailbox. How can I specify a mailboxuri on
ExchangeWebServiceClient?

NetworkCredential credentials = null;
// if username is not specified, use default credentials
if (Globals.ExchangeUsername == string.Empty)
{
credentials = CredentialCache.DefaultNetworkCredentials;
Log.Logger.Debug("Accessing Exchange with default credentials");
}
else
{
credentials = new NetworkCredential(
Globals.ExchangeUsername,
Globals.ExchangePassword,
Globals.ExchangeDomain);
}


//OLD:, doesnt work with exchange 2010: client = new ExchangeClient("http://s026001/exchange/mailbox1", credentials);

_client = new ExchangeWebServiceClient("https://exchange.xxxxx.nl/ews/Exchange.asmx", credentials);
//_client.KeepAlive = true;



...GetMailBoxInfo ...

Hi,


Thank you for using Aspose products.

Exchange impersonation is possible with ExchnageClient as well as ExchangeWebServiceClient. Please check the below linked Technical Article for your reference.
http://www.aspose.com/documentation/.net-components/aspose.email-for-.net/read-emails-from-other-users-mailbox.html

If you are unable to access Other Mailbox then please upgrade to latest version of Aspose.Email for .NET. As you may know that we have split the network related functionality from email programming. Aspose.Email for .NET now contains all the email programming features. Please check out the Blog Announcement.

Please feel free to write back.