例外: System.ServiceModel.Security.SecurityAccessDeniedException: アクセスが拒否されました。 Microsoft Dynamics CRM 2011 Client for Outlook を構成するときにエラーが発生する

この記事では、Microsoft Dynamics CRM 2011 Client for Outlook を構成するときに発生するエラーの解決策について説明します。

適用対象: Microsoft Dynamics CRM 2011
元の KB 番号: 2674807

現象

Office 365 プラットフォームMicrosoft Dynamics CRM Dynamics CRM Online に対して Outlook 用クライアントを構成すると、organizationが正常に取得された後にエラーが表示されます。

Microsoft Dynamics CRM サーバーとの通信に問題があります。 サーバーが使用できない可能性があります。 後でもう一度お試しください。 問題が解決しない場合は、システム管理者に問い合わせてください。

"URL への接続中にエラーが発生しました: https://disco.crm4.dynamics.com/XRMServices/2011/Discovery.svc 例外: System.ServiceModel.Security.SecurityAccessDeniedException: アクセスが拒否されました。

原因

これは、次の場合にのみ発生します。

  • Dynamics CRM Online は、Office 365 プラットフォームで使用されます
  • Office 365のユーザー名は、日本語や韓国語などのマルチバイト文字を使用します

解決方法

Office 365 ユーザーのプロファイルを英語に変更します。

詳細

プラットフォーム エラー
====================================
15:38:44|エラー|URL への接続中にエラーが発生しました: https://disco.crm4.dynamics.com/XRMServices/2011/Discovery.svc 例外: System.ServiceModel.Security.SecurityAccessDeniedException: アクセスが拒否されました。
サーバー スタック トレース:
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 操作, 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.Runtime.Remoting.Proxys.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxys.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Xrm.Sdk.Discovery.IDiscoveryService.Execute(DiscoveryRequest request)
at Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy.Execute(DiscoveryRequest request)
を Microsoft.Crm.Application.Outlook.Config します。DeploymentInfo.DeploymentInfo.LoadOrganizations(AuthUIMode uiMode, Form parentWindow, Credential credentials)
を Microsoft.Crm.Application.Outlook.Config します。DeploymentsInfo.InternalLoadOrganizations(OrganizationDetailCollection orgs, AuthUIMode uiMode, Form parentWindow) 15:38:52|警告|例外が発生してクライアント構成が失敗しました: リモート サーバーからエラー (401) 未承認が返されました。
at System.Net.HttpWebRequest.GetResponse() at Microsoft.Crm.Outlook.ClientAuth.ClaimsBasedAuthProvider'1.MakeHttpPostRequest(Uri postUri, String postData)
at Microsoft.Crm.Outlook.ClientAuth.ClaimsBasedAuthProvider'1.SetBearerCookie(SignInResponseMessage signInResponseMessage)
at Microsoft.Crm.Outlook.ClientAuth.PassportAuthProvider'1.SignIn()
at Microsoft.Crm.Outlook.ClientAuth.ClientAuth.ClientAuthProvidersFactory'1.SignIn(Uri endPoint, Credential credentials, AuthUIMode uiMode, IClientOrganizationContext context, Form parentWindow, Boolean retryOnError)
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()
を Microsoft.Crm.Application.Outlook.Config します。ServerInfo.Initialize(Uri discoveryUri, OrganizationDetail selectedOrg, String displayName, Boolean isPrimary) at Microsoft.Crm.Application.Outlook.Config.ClientConfig.AddDeployment(DeploymentsDeployment[] デプロイ, AuthUIMode uiMode)
を Microsoft.Crm.Application.Outlook.Config します。ClientConfig.AddDeployment_ReducedUI()
を Microsoft.Crm.Application.Outlook.Config します。ClientConfig.Run(Boolean runInsideOutlook)