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 ...