尝试连接 Office Outlook Microsoft Dynamics CRM时出现访问被拒绝错误

本文提供了在尝试连接 Microsoft Dynamics CRM for Office Outlook 时发生的错误的解决方案。

适用于:2015 Microsoft Dynamics CRM、Microsoft Dynamics CRM 2013
原始 KB 编号: 3088205

症状

尝试将 office Outlook Microsoft Dynamics CRM 与本地 CRM 组织连接,并且未在基于声明的身份验证 URL 中包含组织名称时,会收到以下错误消息:

“无法连接到Microsoft Dynamics CRM服务器,因为我们无法对凭据进行身份验证。

检查连接或联系管理员以获取更多帮助。”

原因

office Outlook Microsoft Dynamics CRM无法对你进行身份验证,因为 URL 中未包含组织名称。

解决方案

为 Office Outlook 客户端配置Microsoft Dynamics CRM时,请提供组织名称作为基于声明的身份验证 URL 的一部分。

示例 URL 格式: https://<crmservername>.<domain>.<domainsuffix>/<orgname>
示例 URL: https://crmserver.contoso.com/contoso

注意

如果将Microsoft Dynamics CRM组织配置为面向 Internet 的部署 (IFD) ,还可以通过包含组织名称的 IFD URL 进行访问:

IFD URL 格式示例: https://<orgname>.<domain>.<domainsuffix>
IFD URL 示例: https://contoso.contoso.com

更多信息

选择“ 详细信息”时,将显示以下附加信息,并在日志文件中提供:

访问被拒绝。

服务器堆栈跟踪:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood (Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply (ProxyOperationRuntime 操作,ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call (String action、Boolean oneway、ProxyOperationRuntime operation、Object[] ins、Object[] outs、TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService (IMethodCallMessage methodCall,ProxyOperationRuntime 操作)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke (IMessage 消息)

在 [0]处重新引发异常:
at System.Windows.Forms.Control.MarshaledInvoke (Control 调用方、Delegate 方法、Object[] args、布尔同步)
at System.Windows.Forms.Control.Invoke (Delegate 方法、Object[] args)
at System.Windows.Forms.Control.Invoke (Delegate 方法)
at Microsoft.Crm.Outlook.ClientAuth.ClientAuthProvider'1.RetrieveUserCredentialsAndSignIn (Control parentWindow、Boolean retryOnError、IClientOrganizationContext 上下文)
at Microsoft.Crm.Outlook.ClientAuth.ClientAuthProvider'1.SignIn (AuthUIMode uiMode, IClientOrganizationContext 上下文, Control parentWindow, Boolean retryOnError)
at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo'1.DeploymentInfo'1.LoadOrganizationsInternal (AuthUIMode uiMode, Control parentWindow)
at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo'1.DeploymentInfo'1.LoadOrganizations (AuthUIMode uiMode, Control parentWindow, IClientAuthProvider'1 authenticatedProvider)
at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo'1.InternalLoadOrganizations (DataCollection'1 orgs, AuthUIMode uiMode, Control parentWindow)