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.

Microsoft Dynamics CRM Outlook Client fails to configure if you are using App Passwords for authentication


View products that this article applies to.

Symptoms

When you attempt to configure Microsoft Dynamics CRM for Office Outlook by using App Passwords for authentication, you receive the following error message:

There is a problem communicating with the Microsoft Dynamics CRM server. The server might be unavailable. Try again later. If the problem persists, contact your system administrator.

↑ Back to the top


Resolution

Multi-factor authentication is only supported with Microsoft Dynamics CRM for Office Outlook 2015 and later. For more information see,

Enable multi-factor authentication through OAuth
https://technet.microsoft.com/en-us/library/hh699760.aspx#BKMK_OAuth

↑ Back to the top


More Information

If you view the error details, the following stack trace appears:


The remote server returned an error: (400) Bad Request.   

at System.Net.HttpWebRequest.GetResponse()

   at Microsoft.Crm.Outlook.ClientAuth.ClaimsBasedAuthProvider`1.MakeHttpPostRequest(Uri postUri, String postData)

  at Microsoft.Crm.Outlook.ClientAuth.PassportAuthProvider`1.SignIn()

   at Microsoft.Crm.Outlook.ClientAuth.ClientAuthProvidersFactory`1.SignIn(Uri endPoint, Credential credentials, AuthUIMode uiMode, IClientOrganizationContext context, Form parentWindow, Boolean retryOnError)

   at Microsoft.Crm.Outlook.ClientAuth.ClientAuthProvidersFactory`1.GetAuthProvider(Uri endPoint, Credential credentials, AuthUIMode uiMode, Uri webEndPoint, IClientOrganizationContext context, Form parentWindow)

   at Microsoft.Crm.Application.Outlook.Config.ServerInfo.LoadUserId()

   at Microsoft.Crm.Application.Outlook.Config.ServerInfo.Initialize(Uri discoveryUri, OrganizationDetail selectedOrg, String displayName, Boolean isPrimary)

   at Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadDataToServerInfo()

   at Microsoft.Crm.Application.Outlook.Config.ServerForm.<InitializeBackgroundWorkers>b__2(Object sender, DoWorkEventArgs e)

   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)

   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)


For more information on the App Passwords feature available with Multi-Factor authentication, refer to the following articles:

Multi-Factor Authentication for Office 365
http://technet.microsoft.com/en-us/library/dn383636.aspx

Managing your Microsoft Azure Multi-Factor Authentication User Settings
http://technet.microsoft.com/en-us/library/dn270518.aspx

↑ Back to the top


Keywords: kbmbspartner, kbmbsmigrate, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 2933267
Revision : 1
Created on : 1/7/2017
Published on : 4/28/2015
Exists online : False
Views : 195