web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics 365 for Outlook client wont connect

(0) ShareShare
ReportReport
Posted on by 15

Hi,

Today i have setup a hybrid solution - Dynamics 365 online to our Exchange 2016 on-prem - all the tests are successful and i receievd the welcome email from CRM though my Exchange server.

I am now trying to get Outlook (2016) to connect to Dynamics but it point blank refuses.

If i choose "Dynamics 365 Online" it just goes round and around wanting me to sign into my account and loops like this with no actual error. The o365 credentials are 100% correct though as i can log into our Dyn365 portal fine.

Here is chunk of logfile

14:10:09|   Info| === Microsoft Dynamics 365 for Outlook Configuration Wizard logging started: 31/01/2018 14:10:09 ===
14:10:09|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ClientConfig.Initialize
14:10:09|   Info| Client Configuration Wizard Version      : 8.2.0001.0176
14:10:09|   Info| Client Configuration Wizard LanguageID   : 1033
14:10:09|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.Validator.IsOutlookInitialized
14:10:09|   Info| Query all rows in profile table
14:10:09|   Info| Outlook is  initialized
14:10:09|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.Validator.IsOutlookInitialized
14:10:09|   Info| Client Configuration Wizard Running Mode : Normal
14:10:09|   Info| Configuration file Type : Online.
14:10:09|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.ConfigInfo
14:10:09|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetAllCRMOrgsInOutlookProfile
14:10:09|   Info| Logon mapi store
14:10:09|   Info| Logon admin service
14:10:09|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetServiceIds
14:10:09|   Info| Query all rows in msg service table
14:10:09|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetServiceIds
14:10:09|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.CleanUpDatastoreIfNeeded
14:10:09|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.CleanUpDatastoreIfNeeded
14:10:09|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.ConfigInfo
14:10:09|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm..ctor
14:10:09|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm..ctor
14:10:09|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.SetUIData
14:10:09|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadAvailableUrls
14:10:09|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadAvailableUrls
14:10:09|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.SetUIData
14:10:42|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm._serverUrlConnectButton_Click
14:10:42|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.TestConnection
14:10:42|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.TestConnection
14:10:42|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm._serverUrlConnectButton_Click
14:10:42|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.RunEnvironmentDiagnostics
14:10:42|Verbose| Method entry: Microsoft.Crm.Application.Outlook.ConfigDiagnostics.DiagnosticEngine.Run(Environment)
14:10:42|Verbose| Method entry: Microsoft.Crm.Application.Outlook.ConfigDiagnostics.LocalTimeDiagnostic.ExecuteInternal
14:10:42|   Info| Current UTC date/time from xxxxx.xxxxx.co.uk: 01/31/2018 14:10:42
14:10:42|   Info| NetApiStatus for NetApiBufferFree: 0
14:10:42|   Info| Client UTC Date/Time: 01/31/2018 14:10:42
14:10:42|   Info| Difference (in minutes) between client time and actual time: 0.00030186
14:10:42|Verbose| Method exit: Microsoft.Crm.Application.Outlook.ConfigDiagnostics.LocalTimeDiagnostic.ExecuteInternal
14:10:42|Verbose| Method exit: Microsoft.Crm.Application.Outlook.ConfigDiagnostics.DiagnosticEngine.Run(Environment)
14:10:42|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.RunEnvironmentDiagnostics
14:11:56|   Info| Error connecting to URL: disco.crm.dynamics.com/.../Discovery.svc Exception: Microsoft.Crm.Outlook.ClientAuth.CrmClientAuthException: Authentication was canceled.
   at Microsoft.Crm.Outlook.ClientAuth.oAuthProvider`1.SignInInternal(AuthUIMode uiMode, IClientOrganizationContext context, Control parentWindow, Boolean retryOnError)
   at Microsoft.Crm.Outlook.ClientAuth.oAuthProvider`1.SignIn(AuthUIMode uiMode, IClientOrganizationContext context, Control parentWindow, Boolean retryOnError)
   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.LoadOrganizations(AuthUIMode uiMode, Control parentWindow, IClientAuthProvider`1 authenticatedProvider)
   at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo`1.InternalLoadOrganizations(DataCollection`1 orgs, AuthUIMode uiMode, Control parentWindow)
14:11:56|  Error| Exception : Authentication was canceled.    at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo`1.InternalLoadOrganizations(DataCollection`1 orgs, AuthUIMode uiMode, Control parentWindow)
   at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo`1.LoadOrganizations(AuthUIMode uiMode, Control parentWindow)
   at Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadOrganizationsInternal[TService](Boolean forceUI, String deploymentUrl, Boolean tryWIA, Boolean keepUrlIntact, String org)
   at Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadOrganizationsInternal[TService](Boolean forceUI, String deploymentUrl, Boolean tryWIA, Boolean keepUrlIntact)
   at Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadOrganizationsLogic(Boolean forceUI, String deploymentUrl, Boolean tryWIA)
   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)
14:11:59|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm._serverUrlConnectButton_Click
14:11:59|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.TestConnection
14:11:59|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.TestConnection
14:11:59|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm._serverUrlConnectButton_Click
14:11:59|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.RunEnvironmentDiagnostics
14:11:59|Verbose| Method entry: Microsoft.Crm.Application.Outlook.ConfigDiagnostics.DiagnosticEngine.Run(Environment)
14:11:59|Verbose| Method entry: Microsoft.Crm.Application.Outlook.ConfigDiagnostics.LocalTimeDiagnostic.ExecuteInternal
14:12:00|   Info| Current UTC date/time from ftl.fulgent.co.uk: 01/31/2018 14:12:00
14:12:00|   Info| NetApiStatus for NetApiBufferFree: 0
14:12:00|   Info| Client UTC Date/Time: 01/31/2018 14:12:00
14:12:00|   Info| Difference (in minutes) between client time and actual time: 0.000343455
14:12:00|Verbose| Method exit: Microsoft.Crm.Application.Outlook.ConfigDiagnostics.LocalTimeDiagnostic.ExecuteInternal
14:12:00|Verbose| Method exit: Microsoft.Crm.Application.Outlook.ConfigDiagnostics.DiagnosticEngine.Run(Environment)
14:12:00|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.RunEnvironmentDiagnostics

If i browse to https://disco.crm.dynamics.com/XRMServices/2011/Discovery.svc in a broswer the service page is displayed

If i enter my Dynamics 365 address manually it throws this error: (url cleansed)

14:12:00|   Info| Error connecting to URL: xxxxx.crm11.dynamics.com/.../Organization.svc Exception: System.InvalidOperationException: Metadata contains a reference that cannot be resolved: 'xxxxx.crm11.dynamics.com/.../Organization.svc;sdkversion=8.2'. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
   at System.Net.TlsStream.CallProcessAuthentication(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
   at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.ConnectStream.WriteHeaders(Boolean async)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetResponse()
   at System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper)
   at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)
   --- End of inner exception stack trace ---
   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.DiscoverAuthUsingServiceMetadata(Uri endPoint, Uri webEndPoint)
   at Microsoft.Crm.Outlook.ClientAuth.ClientAuthProvidersFactory`1.GetAuthProviderForDeployment(Uri endPoint, Uri webEndPoint)
   at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo`1.DeploymentInfo`1.ValidateAuthProvider()
   at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo`1.SortAndValidateDeployments()
14:12:00|  Error| Exception : Metadata contains a reference that cannot be resolved: 'xxxxx.crm11.dynamics.com/.../Organization.svc;sdkversion=8.2'.    at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo`1.LoadOrganizations(AuthUIMode uiMode, Control parentWindow)
   at Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadOrganizationsInternal[TService](Boolean forceUI, String deploymentUrl, Boolean tryWIA, Boolean keepUrlIntact, String org)
   at Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadOrganizationsInternal[TService](Boolean forceUI, String deploymentUrl, Boolean tryWIA)
   at Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadOrganizationsLogic(Boolean forceUI, String deploymentUrl, Boolean tryWIA)
   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)
14:12:00|  Error| Exception : The underlying connection was closed: An unexpected error occurred on a send.    at System.Net.HttpWebRequest.GetResponse()
   at System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper)
   at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)
14:12:00|  Error| Dynamic Help Link: go.microsoft.com/fwlink;lcid=409&cv=8.2.1.176&opsys=10.0.16299.0&cid=66a96826-0fca-48d2-a07b-b2297c08c5c8&client=Outlook&error=System.InvalidOperationException%3a80131509%26System.Net.WebException%3a80131509%26System.IO.IOException%3a80131620%26System.Net.Sockets.SocketException%3a80004005&method=LoadOrganizations%26GetResponse%26Read%26Receive&st=   at Microsoft.Crm.Application.Outlook.Config.DeploymentsInfo`1.LoadOrganizations(AuthUIMode uiMode, Control parentWindow)
   at Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadOrganizationsInternal[TService](Boolean forceUI, String deploymentUrl, Boolean tryWIA, Boolean keepUrlIntact, String org)
   at Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadOrganizationsInternal[TService](Boolean forceUI, String deploymentUrl, Boolean tryWIA)
   at Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadOrganizationsLogic(Boolean forceUI, String deploymentUrl, Boolean tryWIA)
   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)&orgType=CRM Online

If i manually go to https://xxxxx.crm11.dynamics.com/XRMServices/2011/Organization.svc is a broswer then the service page is displayed

Anybody help me with this one please - im new to Dynamics so learning as i go

Many Thanks in advance

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi,

    You mentioned that you integrate CRM Online and Exchange on-premise, and now you want to integrate CRM Online and Outlook. The first is using Server-side sync, and the second is using Dynamics CRM for Outlook client. Do you change the sync method in Dynamics CRM settings when you try to connect CRM Online with Outlook?

    BR,

    Judy

  • A_S_T Profile Picture
    15 on at

    Hi Judy,

    Apologies im not sure what you mean.

    My ultimate goal im aiming to achieve is to be able to sync certain email chains from various peoples Outlooks,for various customers to Dynamics CRM so multiple people all have visibilty of conversations.

    I thought linking our Exchange server to Dynamics CRM and then tying Outlook into CRM also was the way to achieve this?

    Have i misunderstood what im aiming to achieve?

    Many Thanks

  • A_S_T Profile Picture
    15 on at

    Right OK so maybe im making some hay here.....

    I have uninstalled Dynamics CRM for Outlook and installed the D365 App for Outlook. - i wasnt fully aware that the 2 were seperate entities as such

    Left all settings at Server-Side Synchronization or Email Router

    However the app doesnt connect either - i hit the Dynamics 365 button in my Outlook and it sits saying "Were getting things ready for you" and then a pop up comes up about 1 minute later saying it cant reach the following page

    port.crm.crmlivetie.com/.../Login.html;client_id=60216f25-dbae-452b-83ae-6224158ce95e&redirect_uri=https%3A%2F%2Fxxxxx.crm11.dynamics.com%2Fcrmmailapp%2Fauth.html&state=62c6c8b6-b9fa-47d0-8297-0fdc9d5b97e9&tenant=common&configuration_parameters=true&nonce=6589e70e-1457-439b-9214-070bcd5e4a89

  • Community Member Profile Picture
    on at

    Hi,

    Do you follow the steps described in the article below to configure Dynamics 365 App for Outlook?

    https://www.powerobjects.com/2017/11/07/configuring-the-dynamics-365-app-for-outlook/

    Best Regards,

    Judy

  • Community Member Profile Picture
    on at

    Hi Judy17,

    if you are using the Microsoft crm outlook client, this client will directly connect to crm (without contacting your exchange-server).

    In my opinion, there is a problem with the authentication of your app, as the error-log write:

    Exception : Authentication was canceled.


    You can check, if the url is correct. Therefore Go to Settings -> Developer Resources -> Organization Service.
    You will see the Organisation URL like: abc.dynamics.com/.../Organization.svc

    Also try to open this url in your internet explorer. Do you get a result?

    ]
                          
  • Andreas Cieslik Profile Picture
    9,267 on at

    Have you installed the most recent update for the Outlook CRM Addin?

  • A_S_T Profile Picture
    15 on at

    I am using Exchange on prem Judy not Exchange online.

  • A_S_T Profile Picture
    15 on at

    Hi Michael,

    Unfortunatly i do not see Developer Resources in settings in my portal?

  • A_S_T Profile Picture
    15 on at

    Hi Andreas,

    I am trying to use the app for outlook at the moment rather than the full blown Outlook CRM addin

  • A_S_T Profile Picture
    15 on at

    Ok so i think the App for Outlook is at fault here

    I have ran a fiddler trace while Outlook is trying to connect and everything looks good apart from 502 errors when accessing port.crm.crmlivetie.com

    [Fiddler] DNS Lookup for "port.crm.crmlivetie.com" failed. System.Net.Sockets.SocketException No such host is known            

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans