Dela via


Fel uppstår när du försöker ansluta Microsoft Dynamics CRM 2013 för Microsoft Office Outlook till en CRM Online 2015-organisation

Den här artikeln innehåller en lösning på ett fel som uppstår när du försöker ansluta Microsoft Dynamics CRM 2013 för Microsoft Office Outlook till en CRM Online 2015-organisation.

Gäller för: Microsoft Dynamics CRM Online, Microsoft CRM-klient för Microsoft Office Outlook
Ursprungligt KB-nummer: 3089572

Symptom

När du försöker ansluta Microsoft Dynamics CRM 2013 för Microsoft Office Outlook till en CRM Online 2015-organisation får du följande fel:

"Det är problem med att kommunicera med Microsoft Dynamics CRM-servern. Servern kanske inte är tillgänglig. Försök igen senare. Kontakta systemadministratören om problemet kvarstår."

Orsak

Du har skrivit URL:en för din CRM Online-organisation i stället för att välja CRM Online i listrutan.

Åtgärd

I stället för att skriva URL:en väljer du CRM Online i listrutan.

Obs!

Det går också att ange identifieringstjänstens URL (till exempel https://disco.crm.dynamics.com). Du kan hitta url:en för identifieringstjänsten i Microsoft Dynamics CRM webbappen genom att välja Inställningar | Anpassning | av utvecklarresurser.

Om du fortfarande har problem med att ansluta CRM för Outlook till din CRM Online-organisation finns det ett diagnostikverktyg som hjälper dig att diagnostisera problemet.

Mer information

Följande fel finns i loggfilen:

12:56:39| Fel| Fel vid anslutning till URL: https://.crm.dynamics.com/XRMServices/2011/Discovery.svc Undantag: System.InvalidOperationException: Metadata innehåller en referens som inte kan matchas: https://crmserviceability.crm.dynamics.com/_common/error/errorhandler.aspx?BackUri=&ErrorCode=&Parm0= 12:56:39| Fel| Fel vid anslutning till URL: https://.crm.dynamics.com/XRMServices/2011/Discovery.svc Undantag: System.InvalidOperationException: Metadata innehåller en referens som inte kan matchas: https://crmserviceability.crm.dynamics.com/_common/error/errorhandler.aspx?BackUri=&ErrorCode=&Parm0= information: Tjänsten "/XRMServices/2011/Discovery.svc" kan inte aktiveras på grund av ett undantag under kompileringen. Undantagsmeddelandet är: Det gick inte att läsa in filen eller sammansättningen Microsoft.Crm.Site.Services, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 eller något av dess beroenden. Det går inte att hitta den angivna filen. &RequestUri=/XRMServices/2011/Discovery.svc?wsdl&user_lcid=1025'. > --- System.Xml. XmlException: CData-element är inte giltiga på översta nivån i ett XML-dokument. Linje 1, position 3.
på System.Xml. XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader-läsare, XmlException-undantag)
på System.Xml. XmlUTF8TextReader.Read()
på System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.GetXmlReader(HttpWebResponse response, Int64 maxMessageSize, XmlDictionaryReaderQuotas readerQuotas)
på System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper)
på System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper) --- Slutet på den inre undantagsstackspårningen ---
på System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)
på System.ServiceModel.Description.MetadataExchangeClient.ResolveNext(ResolveCallState resolveCallState)
på System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(MetadataRetriever retriever)
på System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(URI-adress, MetadataExchangeClientMode-läge)
på Microsoft.Xrm.Sdk.Client.ServiceMetadataUtility.RetrieveServiceEndpointMetadata(Type contractType, Uri serviceUri, Boolean checkForSecondary)
på Microsoft.Xrm.Sdk.Client.ServiceConfiguration1..ctor(Uri serviceUri, Boolean checkForSecondary) at Microsoft.Xrm.Sdk.Client.ServiceConfigurationFactory.CreateConfiguration[TService](Uri serviceUri, Boolean enableProxyTypes, Assembly assembly) at Microsoft.Xrm.Sdk.Client.ServiceConfigurationFactory.CreateConfiguration[TService](Uri serviceUri) at Microsoft.Crm.Outlook.ClientAuth.ClientAuthProvidersFactory\1.GetAuthProviderForDeployment(URI-slutpunkt, Autentiseringsuppgifter, Uri webEndPoint)
på Microsoft.Crm.Application.Outlook.Config. DeploymentsInfo.DeploymentInfo.ValidateAuthProvider()
på Microsoft.Crm.Application.Outlook.Config. DeploymentsInfo.SortAndValidateDeployments()
12:56:39| Fel| Undantag: Metadata innehåller en referens som inte kan matchas: https://crmserviceability.crm.dynamics.com/_common/error/errorhandler.aspx?BackUri=&ErrorCode=&Parm0= information: Tjänsten "/XRMServices/2011/Discovery.svc" kan inte aktiveras på grund av ett undantag under kompileringen. Undantagsmeddelandet är: Det gick inte att läsa in filen eller sammansättningen Microsoft.Crm.Site.Services, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 eller något av dess beroenden. Det går inte att hitta den angivna filen. &RequestUri=/XRMServices/2011/Discovery.svc?wsdl&user_lcid=1025'. på Microsoft.Crm.Application.Outlook.Config. DeploymentsInfo.LoadOrganizations(AuthUIMode uiMode, Formulär parentWindow)
på Microsoft.Crm.Application.Outlook.Config. ServerForm.LoadOrganizationsInternal(Boolean forceUI, String deploymentUrl) på Microsoft.Crm.Application.Outlook.Config. ServerForm.<>c__DisplayClass17.<LoadOrganizations>b__10()
på Microsoft.ExceptionHelper.ExceptionFilter.TryFilter[TEx](Action body, Predicate'1 filter, Action'1 catchClause)
på Microsoft.Crm.Application.Outlook.Config. ServerForm.LoadOrganizations (booleskt forceUI)
på Microsoft.Crm.Application.Outlook.Config. ServerForm.<InitializeBackgroundWorkers>b__0(Object sender, DoWorkEventArgs e) på System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
på System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
12:56:39| Fel| Undantag: CData-element är inte giltiga på den översta nivån i ett XML-dokument. Linje 1, position 3. på System.Xml. XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader-läsare, XmlException-undantag)
på System.Xml. XmlUTF8TextReader.Read()
på System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.GetXmlReader(HttpWebResponse response, Int64 maxMessageSize, XmlDictionaryReaderQuotas readerQuotas)
på System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper)
på System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)