locked
Outlook 2010 Cannot Connect to CRM RRS feed

  • Question

  • What causes this error?

    Other than reinstalling the client (while removing the registry entries) what is the fix?

    error :

    9/26/2014 5:03:14 PM ===

    17:03:14|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ClientConfig.Initialize

    17:03:14|   Info| Client Configuration Wizard Version      : 6.1.0000.0581

    17:03:14|   Info| Client Configuration Wizard LanguageID   : 1033

    17:03:14|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.Validator.IsOutlookInitialized

    17:03:14|   Info| Query all rows in profile table

    17:03:14|   Info| Outlook is  initialized

    17:03:14|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.Validator.IsOutlookInitialized

    17:03:14|   Info| Client Configuration Wizard Running Mode : Normal

    17:03:14|   Info| Configuration file Type : Online.

    17:03:14|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.MainForm.MainForm

    17:03:14|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.ConfigInfo

    17:03:14|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetAllCRMOrgsInOutlookProfile

    17:03:14|   Info| Logon mapi store

    17:03:14|   Info| Logon admin service

    17:03:14|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetServiceIds

    17:03:14|   Info| Query all rows in msg service table

    17:03:14|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetServiceIds

    17:03:15|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.CleanUpDatastoreIfNeeded

    17:03:15|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.CleanUpDatastoreIfNeeded

    17:03:15|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.ConfigInfo

    17:03:15|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.MainForm.MainForm

    17:03:15|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.MainForm.MainForm_Shown

    17:03:15|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.MainForm.AddServer

    17:03:15|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.ServerForm

    17:03:15|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.ServerForm

    17:03:15|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.SetUIData

    17:03:15|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadAvailableUrls

    17:03:15|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadAvailableUrls

    17:03:15|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.SetUIData

    17:03:44|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm._okButton_Click

    17:03:44|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm._okButton_Click

    17:03:51|   Info| Fill organization comboBox with server information.

    17:04:04|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm._okButton_Click

    17:04:04|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm._okButton_Click

    17:05:06|  Error| Exception : Metadata contains a reference that cannot be resolved: 'http://tera:443/EBSPROD/XRMServices/2011/Organization.svc?wsdl'.    at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)

       at System.ServiceModel.Description.MetadataExchangeClient.ResolveNext(ResolveCallState resolveCallState)

       at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(MetadataRetriever retriever)

       at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(Uri address, MetadataExchangeClientMode mode)

       at Microsoft.Xrm.Sdk.Client.ServiceMetadataUtility.RetrieveServiceEndpointMetadata(Type contractType, Uri serviceUri, Boolean checkForSecondary)

       at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1..ctor(Uri serviceUri, Boolean checkForSecondary)

       at Microsoft.Xrm.Sdk.Client.OrganizationServiceConfiguration..ctor(Uri serviceUri, Boolean enableProxyTypes, Assembly assembly)

       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.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)

    17:05:06|  Error| Exception : The operation has timed out    at System.Net.HttpWebRequest.GetResponse()

       at System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper)

       at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)

    17:05:35|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm._okButton_Click

    17:05:35|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm._okButton_Click

    17:06:37|  Error| Exception : Metadata contains a reference that cannot be resolved: 'http://tera:443/EBSPROD/XRMServices/2011/Organization.svc?wsdl'.    at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)

       at System.ServiceModel.Description.MetadataExchangeClient.ResolveNext(ResolveCallState resolveCallState)

       at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(MetadataRetriever retriever)

       at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(Uri address, MetadataExchangeClientMode mode)

       at Microsoft.Xrm.Sdk.Client.ServiceMetadataUtility.RetrieveServiceEndpointMetadata(Type contractType, Uri serviceUri, Boolean checkForSecondary)

       at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1..ctor(Uri serviceUri, Boolean checkForSecondary)

       at Microsoft.Xrm.Sdk.Client.OrganizationServiceConfiguration..ctor(Uri serviceUri, Boolean enableProxyTypes, Assembly assembly)

       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.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)

    17:06:37|  Error| Exception : The operation has timed out    at System.Net.HttpWebRequest.GetResponse()

       at System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper)

       at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)


    Friday, September 26, 2014 9:22 PM

All replies

  • Hi ebs,

    Looks like this might be a timeout issue. Can the users access CRM successfully from the browser? Is the client connected internal or externally?

    • Edited by triangular Saturday, September 27, 2014 3:34 AM typo
    Saturday, September 27, 2014 3:32 AM
  • look like it is not resolving to the correct endpoint

    'http://tera:443/EBSPROD/XRMServices/2011/Organization.svc?wsdl'

    that has an http poiting toa https?

    443 is a port for http, not https

    can you browse this from the same machine you got the error?

    https://tera:443/EBSPROD/XRMServices/2011/Organization.svc?wsdl

    run the configuration wizard again and make sure you either enter something kile

    https://tera:443/

    or the internal that should be something like http://tera ou http://tera:5555


    I Hope I could help. If I have answered please mark as 'Answer'. If was just helpful, please vote. Thanks and happy coding! Bruno Lucas, http://dynamicday.wordpress.com/

    Saturday, September 27, 2014 4:52 AM
  • 1.Check if the server and client have the same rollup

    2.Check if you are able to access 'http://tera:443/EBSPROD/XRMServices/2011/Organization.svc' in IE.

    3.Check the time between server and client, if the gap is bigger than 5mins

    Wednesday, October 1, 2014 8:05 AM