locked
Error while configuring CRM 2011 for client Outlook RRS feed

  • Question

  • Hi guys how are you?

    I have trying to configure a org in CRM 2011 client for Outlook and when I set the url of my organization and click on "Test Connection" button, the same give me error below:

    17:54:25|   Info| === Log do Assistente de Configuração do Microsoft Dynamics CRM para Outlook iniciado: 26/11/2013 17:54:25 ===
    17:54:25|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ClientConfig.Initialize
    17:54:25|   Info| Client Configuration Wizard Version      : 5.0.9690.2838
    17:54:25|   Info| Client Configuration Wizard LanguageID   : 1046
    17:54:25|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.Validator.IsOutlookInitialized
    17:54:25|   Info| Query all rows in profile table
    17:54:25|   Info| Outlook is  initialized
    17:54:25|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.Validator.IsOutlookInitialized
    17:54:25|   Info| Client Configuration Wizard Running Mode : Normal
    17:54:25|   Info| Configuration file Type : OnPremise.
    17:54:25|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.MainForm.MainForm
    17:54:25|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.ConfigInfo
    17:54:25|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetAllCRMOrgsInOutlookProfile
    17:54:25|   Info| Logon mapi store
    17:54:25|   Info| Logon admin service
    17:54:25|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetServiceIds
    17:54:25|   Info| Query all rows in msg service table
    17:54:25|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetServiceIds
    17:54:25|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.CleanUpDatastoreIfNeeded
    17:54:25|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.CleanUpDatastoreIfNeeded
    17:54:25|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.ConfigInfo
    17:54:25|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.MainForm.MainForm
    17:54:25|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.MainForm.MainForm_Shown
    17:54:25|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.MainForm.AddServer
    17:54:25|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.ServerForm
    17:54:25|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.ServerForm
    17:54:25|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.SetUIData
    17:54:25|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadAvailableUrls
    17:54:25|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadAvailableUrls
    17:54:25|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.SetUIData
    17:54:42|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm._testConnectionButton_Click
    17:54:42|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.TestConnection
    17:54:42|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.TestConnection
    17:54:42|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm._testConnectionButton_Click
    17:54:47|  Error| Error connecting to URL: https://organization.test.com.br:5554/XRMServices/2011/Discovery.svc Exception: Microsoft.Crm.CrmException: Authentication failed
       at Microsoft.Crm.Outlook.ClientAuth.ClaimsBasedAuthProvider`1.AuthenticateClaims()
       at Microsoft.Crm.Outlook.ClientAuth.ClaimsBasedAuthProvider`1.SignIn()
       at Microsoft.Crm.Outlook.ClientAuth.ClientAuthProvidersFactory`1.SignIn(Uri endPoint, Credential credentials, AuthUIMode uiMode, IClientOrganizationContext context, Form parentWindow, Boolean retryOnError)
       at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.DeploymentInfo.LoadOrganizations(AuthUIMode uiMode, Form parentWindow, Credential credentials)
       at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.InternalLoadOrganizations(OrganizationDetailCollection orgs, AuthUIMode uiMode, Form parentWindow)
    17:55:44|  Error| Error connecting to URL: https://organization.test.com.br:5554/XRMServices/2011/Discovery.svc Exception: Microsoft.Crm.CrmException: Authentication failed
       at Microsoft.Crm.Outlook.ClientAuth.ClientAuthProvidersFactory`1.RetrieveUserCredentialsAndSignIn(Uri endPoint, Credential credentials, Form parentWindow, Boolean retryOnError, IClientOrganizationContext context)
       at Microsoft.Crm.Outlook.ClientAuth.ClientAuthProvidersFactory`1.SignIn(Uri endPoint, Credential credentials, AuthUIMode uiMode, IClientOrganizationContext context, Form parentWindow, Boolean retryOnError)
       at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.DeploymentInfo.LoadOrganizations(AuthUIMode uiMode, Form parentWindow, Credential credentials)
       at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.InternalLoadOrganizations(OrganizationDetailCollection orgs, AuthUIMode uiMode, Form parentWindow)
    17:55:53|  Error| Error connecting to URL: https://organization.test.com.br:5554/XRMServices/2011/Discovery.svc Exception: Microsoft.Crm.Outlook.ClientAuth.CrmClientAuthException: Authentication was canceled.
       at Microsoft.Crm.Outlook.ClientAuth.ClientAuthProvidersFactory`1.RetrieveUserCredentialsAndSignIn(Uri endPoint, Credential credentials, Form parentWindow, Boolean retryOnError, IClientOrganizationContext context)
       at Microsoft.Crm.Outlook.ClientAuth.ClientAuthProvidersFactory`1.SignIn(Uri endPoint, Credential credentials, AuthUIMode uiMode, IClientOrganizationContext context, Form parentWindow, Boolean retryOnError)
       at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.DeploymentInfo.LoadOrganizations(AuthUIMode uiMode, Form parentWindow, Credential credentials)
       at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.InternalLoadOrganizations(OrganizationDetailCollection orgs, AuthUIMode uiMode, Form parentWindow)
    17:55:53|  Error| Exception : Authentication was canceled.    at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.InternalLoadOrganizations(OrganizationDetailCollection orgs, AuthUIMode uiMode, Form parentWindow)
       at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo.LoadOrganizations(AuthUIMode uiMode, Form parentWindow)
       at Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadOrganizations(Boolean forceUI)
       at Microsoft.Crm.Application.Outlook.Config.ServerForm.<InitializeBackgroundWorkers>b__0(Object sender, DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

    Made test with the same user and password on CRM web, worked fine!

    Someone already had the same error and managed to make it work?

    I appreciate if someone help me with this!

    Regards.

    Rafael Santos

    Tuesday, November 26, 2013 8:32 PM

All replies

  • I was also getting the same error. I was using On premise version with IFD enabled. The issue was resolved by following checks and sucessfully configured the outlook with Microsoft Dynamics CRM 2011. 

    If your are using On-Premise version of Microsoft Dynamics CRM and IFD enabled then please do the followings checks:

    1. Please check you have entered the correct URL.

    2. Server time may not be in sync with correct time zone. Please check Clock Sync Software is updated on server where Microsoft Dynamics CRM is hosted.

    I hope this might help you. Please try.

    Regards,

    Shashi

    Wednesday, November 27, 2013 2:41 PM
  • Hello Rafael,

    Possibly the issue is with the authentication as I can see 'Microsoft.Crm.CrmException: Authentication failed'..

    1. Please use the correct url including http: or https:

    2. Please try username with domain\sam_accountname.

    Please try and it should work.

    All the best.

    Regards,

    Imran M

    Wednesday, November 27, 2013 7:29 PM
  • Hi Shashi,

    I did the same steps that you send me but don't work!

    I saw the time zone config too and it's ok!

    I believe that can be another thing because I did test in another machine e works fine!

    Thanks for help!

    Regards

    Rafael Santos

    Thursday, November 28, 2013 9:22 PM
  • Hi Imran M,

    I did the same steps that you send me but don't work too!

    I put the correct url and set the user/password that work and nothing!

    I believe that can be another thing because I did test in another machine e works fine!

    Thanks for help!

    Regards

    Rafael Santos
    Thursday, November 28, 2013 9:23 PM