locked
Outlook Client Error [CRM2011-On-Premises] RRS feed

  • Question

  • Hello,

    I have this error in log when I try to test connection in the configuration of my Outlook client (Office 2010 64bits on Windows 7 x64)

    16:24:34| Error| Error connecting to URL: http://crm2011/XRMServices/2011/Discovery.svc Exception: System.InvalidOperationException: 
    The provided uri did not return any Service Endpoints! à Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1..ctor(Uri serviceUri) à Microsoft.Xrm.Sdk.Client.ServiceConfigurationFactory.CreateConfiguration[TService](Uri serviceUri) à Microsoft.Crm.Outlook.ClientAuth.ClientAuthProvidersFactory`1.GetAuthProvider(Uri endPoint, Credential credentials, AuthUIMode
    uiMode, Uri webEndPoint, IClientOrganizationContext context, Form parentWindow) à Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.DeploymentInfo.LoadOrganizations(AuthUIMode uiMode, Form parentWindow) à Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.LoadOrganizations(AuthUIMode uiMode, Form parentWindow)

    It's a new installation (migration from CRM 4.0) on a Windows Server 2008 R2 Entreprise (CRM 2011 5.0.9688.583) and I have a SQL server 2008 on another server 2008 R2 too.

    With IE all works fine !

     

    Jérôme

    Wednesday, March 9, 2011 3:34 PM

Answers

  • Hello,

    I just found a solution, my problem was to add a port to IIS site of CRM *:80. Just delete it and restart www service.

    I use the default http://xxxx:5555 and all works fine. Due to the Outlook CRM that used by default xxx:5555/XRMServices/... so only port 80 doesn't work with Outlook client.

     

    Jérôme

    • Marked as answer by Jerome2606 Monday, March 14, 2011 9:47 AM
    Monday, March 14, 2011 9:47 AM

All replies

  • Did you type in the Discovery Service URL or was it derived.  I think you are supposed to type in the address you use to access the web client.

    The http://server/org/loader.aspx page

     


    Jamie Miley

    Wednesday, March 9, 2011 3:45 PM
    Moderator
  • I try all:

    http://server

    http://server:5555

    ...

    All possible URL and the error detail i put is for http://server

     

    Jérôme

    Wednesday, March 9, 2011 3:52 PM
  • Did you try the full url with the org include and the loader.aspx at the end?
    Jamie Miley
    Wednesday, March 9, 2011 7:40 PM
    Moderator
  • Yes I just try it, put the log details for this try:

    09:13:22|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ClientConfig.Initialize
    09:13:22|  Info| Client Configuration Wizard Version   : 5.0.9688.583
    09:13:22|  Info| Client Configuration Wizard LanguageID  : 1036
    09:13:22|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.Validator.IsOutlookInitialized
    09:13:22|  Info| Query all rows in profile table
    09:13:22|  Info| Outlook is initialized
    09:13:22|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.Validator.IsOutlookInitialized
    09:13:22|  Info| Client Configuration Wizard Running Mode : Normal
    09:13:24|  Info| Configuration file Type : OnPremise.
    09:13:24|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.ConfigInfo
    09:13:24|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetAvailableServiceIds
    09:13:24|  Info| Logon mapi store
    09:13:24|  Info| Logon admin service
    09:13:24|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetServiceIds
    09:13:24|  Info| Query all rows in msg service table
    09:13:24|  Info| Adding service id : {9f97b377-0f43-4fb0-95e5-198152a10735}
    09:13:24|  Info| Adding service id : {57d29382-19ea-4c44-9ade-26b122427bf8}
    09:13:24|  Info| Adding service id : {1110cbff-92c2-4b43-a0a1-b31ec4919ff4}
    09:13:24|  Info| Adding service id : {b47fb490-2e3a-4287-a418-7391867504ad}
    09:13:24|  Info| Adding service id : {a75fe9f5-1a32-4e26-b435-f75dc66f520a}
    09:13:24|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetServiceIds
    09:13:24|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.RemoveOrphanDatastoreIfNeeded
    09:13:24|  Info| Logon mapi store
    09:13:24|  Info| Logon admin service
    09:13:24|  Info| Query crm msg services in msg service table.
    09:13:24|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.RemoveOrphanDatastoreIfNeeded
    09:13:24|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.ConfigInfo
    09:13:24|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.ServerForm
    09:13:25|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.ServerForm
    09:13:25|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.SetUIData
    09:13:25|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadAvailableUrls
    09:13:26|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadAvailableUrls
    09:13:26|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.SetUIData
    09:13:40|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm._testConnectionButton_Click
    09:13:40|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.TestConnection
    09:13:40|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.TestConnection
    09:13:40|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm._testConnectionButton_Click
    09:13:47| Error| Error connecting to URL: http://crm2011/Infotec/XRMServices/2011/Discovery.svc Exception: 
    System.InvalidOperationException: The provided uri did not return any Service Endpoints! à Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1..ctor(Uri serviceUri) à Microsoft.Xrm.Sdk.Client.ServiceConfigurationFactory.CreateConfiguration[TService](Uri serviceUri) à Microsoft.Crm.Outlook.ClientAuth.ClientAuthProvidersFactory`1.GetAuthProvider(Uri endPoint, Credential credentials,
    AuthUIMode uiMode, Uri webEndPoint, IClientOrganizationContext context, Form parentWindow) à Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.DeploymentInfo.LoadOrganizations(AuthUIMode uiMode, Form parentWindow) à Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.LoadOrganizations(AuthUIMode uiMode, Form parentWindow) 09:13:47| Error| Exception : The provided uri did not return any Service Endpoints! à
    Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.LoadOrganizations(AuthUIMode uiMode, Form parentWindow) à Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadOrganizations(Boolean forceUI) à System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
    Jérôme

    Thursday, March 10, 2011 8:22 AM
  • I have another error when i try https://crm2011:5555

     

    this is my error detail from log:

    14:11:50| Error| Error connecting to URL: https://crm2011/XRMServices/2011/Discovery.svc Exception: System.InvalidOperationException: 
    Metadata contient une référence qui ne peut pas être résolue : 'https://crm2011/XRMServices/2011/Discovery.svc?wsdl'.
    ---> System.Net.WebException: Impossible de se connecter au serveur distant ---> System.Net.Sockets.SocketException:
    Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée 10.0.0.116:443 à System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) à System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address,
    ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- Fin de la trace de la pile d'exception interne --- à System.Net.HttpWebRequest.GetResponse() à System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper) à System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper) --- Fin de la trace de la pile d'exception interne --- à System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper) à System.ServiceModel.Description.MetadataExchangeClient.ResolveNext(ResolveCallState resolveCallState) à System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(MetadataRetriever retriever) à Microsoft.Xrm.Sdk.Client.ServiceMetadataUtility.RetrieveServiceEndpoints(Type contractType, Uri serviceUri) à Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1..ctor(Uri serviceUri) à Microsoft.Xrm.Sdk.Client.ServiceConfigurationFactory.CreateConfiguration[TService](Uri serviceUri) à Microsoft.Crm.Outlook.ClientAuth.ClientAuthProvidersFactory`1.GetAuthProvider(Uri endPoint, Credential credentials,
    AuthUIMode uiMode, Uri webEndPoint, IClientOrganizationContext context, Form parentWindow) à Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.DeploymentInfo.LoadOrganizations(AuthUIMode uiMode, Form parentWindow) à Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.LoadOrganizations(AuthUIMode uiMode, Form parentWindow) 14:11:50| Error| Exception : Metadata contient une référence qui ne peut pas être résolue :
    'https://crm2011/XRMServices/2011/Discovery.svc?wsdl'. à
    Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.LoadOrganizations(AuthUIMode uiMode, Form parentWindow) à Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadOrganizations(Boolean forceUI) à System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) 14:11:50| Error| Exception : Impossible de se connecter au serveur distant à System.Net.HttpWebRequest.GetResponse() à System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper) à System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)

    Si quelqu'un a une idée, il est le bienvenu,

     

    Jérôme

    Thursday, March 10, 2011 1:26 PM
  • It's saying that no endpoints are being returned by the URL, which would suggest a bad URL, but it seems that you have tried the valid combinations. 

    Could it be some kind of firewall issue!

    The implementation guide shows http://Server:port as the correct syntax.

    http://technet.microsoft.com/en-us/library/gg554865.aspx

    Also, here is another forum that might be relevant.

    http://social.microsoft.com/Forums/en-US/crmdeployment/thread/7f3feb25-c7a9-4e96-a3bc-059dadc533fa

     


    Jamie Miley
    Thursday, March 10, 2011 2:59 PM
    Moderator
  • Yes i Tried all possibilities of URL,

    firewall need to be ok, I can connect CRM with IE ... don't understand why with Outlook it doesn't works.

    I will try fiddler.

     

    Jérôme

    Thursday, March 10, 2011 3:40 PM
  • After investigations, I have this error in Event Viewer of my CRM 2011 Server when I try to connect with Outlook on http://crm2011:5555 :

     

    Exception: System.ServiceModel.ServiceActivationException: The service '/XRMServices/2011/Discovery.svc' cannot be 
    activated due to an
    exception during compilation. The exception message is: This collection already contains an address with scheme http.
    There can be at most one address per scheme in this collection. If your service is being hosted in IIS you can fix
    the problem by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying
    'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'. Parameter name: item. ---> System.ArgumentException: This collection already contains an address with scheme http.
    There can be at most one address per scheme in this collection. If your service is being hosted in IIS you can fix the
    problem
    by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying
    'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'.

     

    I don't see how to make it works. I take a look in "web.config" of webroot CRM, but at <system.serviceModel> I don't see any 'multipleSiteBindingsEnabled'. I have only one organisation and I have only one site running on IIS on this server.

     

    Thanks in advance for your help,

    Jérôme

    Friday, March 11, 2011 12:28 PM
  • Anyone have idea??
    Monday, March 14, 2011 8:30 AM
  • Just try embedding a "/" at the end of your URL.

    Ex:http://servername:5555/

     

    Its weird but have done the trick for me in similar cases


    Cheers, Edwin
    Monday, March 14, 2011 9:26 AM
  • Hello,

    I just found a solution, my problem was to add a port to IIS site of CRM *:80. Just delete it and restart www service.

    I use the default http://xxxx:5555 and all works fine. Due to the Outlook CRM that used by default xxx:5555/XRMServices/... so only port 80 doesn't work with Outlook client.

     

    Jérôme

    • Marked as answer by Jerome2606 Monday, March 14, 2011 9:47 AM
    Monday, March 14, 2011 9:47 AM