分享方式:


當您設定 Microsoft Dynamics CRM for Outlook 時,「伺服器位址 (URL) 無效」錯誤

本文提供當您設定 Microsoft Dynamics CRM for Outlook所發生之錯誤的解決方案。

適用於: Microsoft Dynamics CRM、Microsoft Dynamics CRM 2015、Microsoft Dynamics CRM Online
原始 KB 編號: 3123894、3048775

徵兆

當您嘗試 設定 Microsoft Dynamics CRM for Outlook 時,您會收到下列錯誤訊息:

伺服器位址 (URL) 無效。

原因 1:URL 無效或無法存取 dynamics CRM Microsoft

解決方法

若要確認 URL 有效且可以成功存取 dynamics CRM Microsoft,請嘗試使用相同的 URL,透過網頁瀏覽器存取 Microsoft Dynamics CRM。 如果您無法透過網頁瀏覽器存取CRM組織,Microsoft Dynamics CRM for Outlook 無法存取它。 如果您嘗試連線到 CRM Online 組織,請選取 [CRM Online ] 選項,而不是在 [Microsoft Dynamics CRM for Outlook 組態精靈] 中輸入 URL。

提示

如果您仍然將 Microsoft Dynamics CRM for Outlook 連線到 CRM Online 組織時發生問題,請使用 Microsoft 支援服務 和 Recovery Assistant 掃描 Outlook,以診斷並修正問題。

原因 2:Microsoft Dynamics CRM for Outlook 嘗試使用網域認證連線到 Microsoft Dynamics CRM

解決方法

若要以不同的帳戶進行驗證,您必須清除 [ 使用我目前的認證 自動連線] 複選框。 如果看不到複選框,請從下拉式清單中再次選取 [CRM Online ] 選項,或輸入您的 Microsoft Dynamics CRM Online URL。 您也可以從網頁瀏覽器複製並貼上URL。

提示

如果您仍然將 Microsoft Dynamics CRM for Outlook 連線到 CRM Online 組織時發生問題,請使用 Microsoft 支援服務 和 Recovery Assistant 掃描 Outlook,以診斷並修正問題。

其他相關資訊

如果您選取 [詳細資料 ] 或檢視記錄檔,您會看到下列錯誤:

Client configuration failed with the exception : The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Bearer authorization_uri=https://login.windows.net/common/oauth2/authorize'.
Server stack trace:
 at System.ServiceModel.Channels.HttpChannelUtilities.ValidateAuthentication(HttpWebRequest request, HttpWebResponse response, WebException responseException, HttpChannelFactory`1 factory)
 at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory`1 factory, WebException responseException, ChannelBinding channelBinding)
 at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
 at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
 at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
 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 operation)
 at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
 at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
 at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
 at Microsoft.Xrm.Sdk.Discovery.IDiscoveryService.Execute(DiscoveryRequest request)
 at Microsoft.Xrm.Sdk.WebServiceClient.DiscoveryWebProxyClient.<>c__DisplayClass1.<ExecuteCore>b__0()
 at Microsoft.Xrm.Sdk.WebServiceClient.WebProxyClient`1.ExecuteAction[TResult](Func`1 action)
 at Microsoft.Xrm.Sdk.WebServiceClient.DiscoveryWebProxyClient.ExecuteCore(DiscoveryRequest request)
 at Microsoft.Xrm.Sdk.WebServiceClient.DiscoveryWebProxyClient.Execute(DiscoveryRequest request)
 at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo`1.DeploymentInfo`1.RequestOrganizationDetailsFromDiscovery(IDiscoveryService proxy, EndpointAccessType endpointAccessType)
 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.LoadFederatedOrganizations(AuthUIMode uiMode, Control parentWindow)
 at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo`1.LoadFederatedOrgs(DataCollection`1 orgs)
 at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo`1.LoadOrganizations(AuthUIMode uiMode, Control parentWindow)
 at Microsoft.Crm.Application.Outlook.Config.ClientConfig.AddDeployment(DeploymentsDeployment[] deployments, AuthUIMode uiMode)
 at Microsoft.Crm.Application.Outlook.Config.ClientConfig.AddDeployment_ReducedUI()
 at Microsoft.Crm.Appli