Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

"Credentials specified in the associated email server profile are incorrect or have insufficient permissions" error when connecting CRM Online to Exchange on-premises


View products that this article applies to.

Symptoms

When Server-Side Synchronization is configured between Microsoft Dynamics CRM Online and Exchange Server (on-premises), you receive one of the following errors after attempting to enable a mailbox:
  • The email message "Test Message" cannot be sent because the credentials specified in the associated email server profile are incorrect or have insufficient permissions for sending email. The owner of the email server profile <Email Server Profile name> has been notified.
  • Email cannot be received because the credentials specified in the associated email server profile are incorrect or have insufficient permissions for receiving email. Mailbox <Mailbox name> didn't synchronize. A notification about this is posted on the alerts wall for the owner of the email server profile <Email Server Profile name>.

↑ Back to the top


Cause

This error can occur if Exchange Web Services (EWS) is not enabled for Basic Authentication.

↑ Back to the top


Resolution

Enable Basic Authentication on your EWS (Exchange Web Services) directory. Basic authentication is not the default for EWS, so you need to make sure this authentication is enabled.

For more information on Basic authentication, see:  

Exchange Server 2010: Configure Basic Authentication

Exchange Server 2010: Default Authentication Settings for Exchange-related Virtual Directories 

Exchange Server 2013: Authentication and EWS in Exchange

Exchange Server 2013: Default settings for Exchange virtual directories

↑ Back to the top


More Information

When you click Details for one of the errors mentioned above, you may see details such as the following:
  • ActivityId: <GUID>
    >Error : System.Net.WebException: The request failed with HTTP status 401: Anonymous Request Disallowed.
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.EndInvoke(IAsyncResult asyncResult)
       at Microsoft.Crm.Asynchronous.EmailConnector.ExchangeServiceBinding.EndFindItem(IAsyncResult asyncResult)
       at Microsoft.Crm.Asynchronous.EmailConnector.FindItemsStep.EndCall()
      at Microsoft.Crm.Asynchronous.EmailConnector.ExchangeIncomingEmailProviderStep.EndOperation()
  • ActivityId: <GUID>
    >Error : System.Net.WebException: The request failed with HTTP status 401: Anonymous Request Disallowed.
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.EndInvoke(IAsyncResult asyncResult)
       at Microsoft.Crm.Asynchronous.EmailConnector.ExchangeServiceBinding.EndCreateItem(IAsyncResult asyncResult)
       at Microsoft.Crm.Asynchronous.EmailConnector.ExchangeOutgoingEmailProvider.EndCreateItem()

↑ Back to the top


Keywords: kbmbspartner, kbmbsmigrate, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 3189622
Revision : 1
Created on : 1/7/2017
Published on : 8/31/2016
Exists online : False
Views : 277