none
Access denied when trying to track a message in Exchange 2010 SP1 Web services RRS feed

  • Question

  • I have the following code

                ExchangeServiceBinding binding = new ExchangeServiceBinding();
                binding.RequestServerVersionValue = new RequestServerVersion();
                binding.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2010_SP1;
                binding.Credentials = new NetworkCredential("username", "password", "DOMAIN");
                binding.Url = "https://miexchangeserver/ews/Exchange.asmx";


                FindMessageTrackingReportRequestType FMT = new FindMessageTrackingReportRequestType();
                FMT.Sender = new EmailAddressType();
                FMT.Sender.EmailAddress = "email@mydomain.com";
                FMT.Scope = "Organization";
                FMT.Domain = "MYDOMAIN";
                FMT.Recipient = new EmailAddressType();

                FindMessageTrackingReportResponseMessageType retornoFind = binding.FindMessageTrackingReport(FMT);

    This returns AccessDenied, Access is denied. Check credentials and try again. The account I'm using has the tracking messages role on exchange server, and I'm sending emails successfully using the same account. Can you help me?

    Thursday, March 1, 2012 9:56 PM