Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Not able to connect to MSCRM On-prem Org through Outlook client 2016.

Posted on by 1,157

Dear Experts,

I'm trying to connect the CRM Outlook client 2016 (version 8.1.0001.1005) with CRM 2016 on-premise(8.1.1.1005) org.

BeforeConnect.JPG

However, when i tried to connect to the CRM Org, I got the following error message:

AfterConnect.JPG

I have tried below URL's to connect, but facing the same behavior. 

1. https://testcrm.domain.pvt

2. https://testcrm.domain.pvt/TestCrmOrg/main.aspx

 

Already done:

- Added Url to trusted websites

- removed history + cache

-  sync time with the domain correctly

- Default browser set to IE 11 instead of IE Edge

S/W and H/W Details:

Office 2016 - 32 bit (version 16.0.8326.2073)

Windows 10 - 64 bit (Latest updates are installed)

CRM Outlook Client 2016 - 32 bit (version 8.1.1.1005)

PFB the log details from C:\Users\<User>\AppData\Local\Microsoft\MSCRM\Logs\ 

11:34:36| Info| === Microsoft Dynamics CRM for Outlook Configuration Wizard logging started: 8/14/2017 11:34:36 AM ===
11:34:36|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ClientConfig.Initialize
11:34:36| Info| Client Configuration Wizard Version : 8.1.0001.1005
11:34:36| Info| Client Configuration Wizard LanguageID : 1033
11:34:36|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.Validator.IsOutlookInitialized
11:34:37| Info| Query all rows in profile table
11:34:37| Info| Outlook is initialized
11:34:37|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.Validator.IsOutlookInitialized
11:34:39| Info| Client Configuration Wizard Running Mode : Normal
11:34:40| Info| Configuration file Type : OnPremise.
11:34:40|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.MainForm..ctor
11:34:40|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.ConfigInfo
11:34:40|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetAllCRMOrgsInOutlookProfile
11:34:41| Info| Logon mapi store
11:34:41| Info| Logon admin service
11:34:41|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetServiceIds
11:34:41| Info| Query all rows in msg service table
11:34:41|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetServiceIds
11:34:41|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.CleanUpDatastoreIfNeeded
11:34:41|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.CleanUpDatastoreIfNeeded
11:34:41|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ConfigInfo.ConfigInfo
11:34:41|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.MainForm..ctor
11:34:41|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.MainForm.MainForm_Shown
11:34:41|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.MainForm.AddServer
11:34:41|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm..ctor
11:34:41|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm..ctor
11:34:41|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.SetUIData
11:34:41|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadAvailableUrls
11:34:41|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.LoadAvailableUrls
11:34:41|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.SetUIData
11:34:58|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm._serverUrlConnectButton_Click
11:34:58|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.TestConnection
11:34:58|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.TestConnection
11:34:58|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm._serverUrlConnectButton_Click
11:34:58|Verbose| Method entry: Microsoft.Crm.Application.Outlook.Config.ServerForm.RunEnvironmentDiagnostics
11:34:58|Verbose| Method entry: Microsoft.Crm.Application.Outlook.ConfigDiagnostics.DiagnosticEngine.Run(Environment)
11:34:58|Verbose| Method entry: Microsoft.Crm.Application.Outlook.ConfigDiagnostics.LocalTimeDiagnostic.ExecuteInternal
11:34:59| Info| Current UTC date/time from DOMAIN.pvt: 08/14/2017 16:34:59
11:34:59| Info| NetApiStatus for NetApiBufferFree: 0
11:34:59| Info| Client UTC Date/Time: 08/14/2017 16:34:59
11:34:59| Info| Difference (in minutes) between client time and actual time: 0.000178575
11:34:59|Verbose| Method exit: Microsoft.Crm.Application.Outlook.ConfigDiagnostics.LocalTimeDiagnostic.ExecuteInternal
11:34:59|Verbose| Method exit: Microsoft.Crm.Application.Outlook.ConfigDiagnostics.DiagnosticEngine.Run(Environment)
11:34:59|Verbose| Method exit: Microsoft.Crm.Application.Outlook.Config.ServerForm.RunEnvironmentDiagnostics
11:34:59| Info| Attempting IFD (https) org service connection.
11:35:00| Info| Error connecting to URL: testcrm.domain.pvt/.../Organization.svc Exception: System.InvalidOperationException: Metadata contains a reference that cannot be resolved: 'testcrm.domain.pvt/.../Organization.svc;sdkversion=8.1'. ---> 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()
11:35:00| Info| IFD (https) org service connection failed. Exception: Metadata contains a reference that cannot be resolved: 'testcrm.domain.pvt/.../Organization.svc;sdkversion=8.1'.
11:35:00| Info| Attempting IFD discovery service connection.
11:35:01| Info| Error connecting to URL: testcrm.domain.pvt/.../Discovery.svc Exception: System.InvalidOperationException: Metadata contains a reference that cannot be resolved: 'testcrm.domain.pvt/.../Discovery.svc;sdkversion=8.1'. ---> 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.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()
11:35:01| Error| Exception : Metadata contains a reference that cannot be resolved: 'testcrm.domain.pvt/.../Discovery.svc;sdkversion=8.1'. 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) -2146233079
11:35:01| 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) -2146233079
11:35:01| Error| Dynamic Help Link: go.microsoft.com/fwlink;lcid=409&cv=8.1.1.1005&opsys=10.0.10586.0&cid=1cb50a25-f4af-4f67-8289-2e9551d2fc19&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 On-Premise

PFB the tracelog from C:\Users\<User>\AppData\Local\Microsoft\MSCRM\Traces\

# CRM Tracing Version 2.0
# LocalTime: 2017-08-14 11:34:35.995
# Categories: *:Warning
# CallStackOn: Yes
# ComputerName: TestVM_1
# CRMVersion: 8.1.1.1005

[2017-08-14 11:34:35.995] Process:Microsoft.Crm.Application.Outlook.ConfigWizard |Organization:00000000-0000-0000-0000-000000000000 |Thread: 6(MSCRM:-NotificationManager.NotificationWatcherThreadProc) |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Warning |ReqId: 00000000-0000-0000-0000-000000000000 | ThreadHelper.ThreadStart_Context ilOffset = 0x3B
at ThreadHelper.ThreadStart_Context(Object state) ilOffset = 0x3B
at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) ilOffset = 0x79
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) ilOffset = 0x9
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) ilOffset = 0x34
at ThreadHelper.ThreadStart(Object obj) ilOffset = 0x32
>NotificationWatcherThread Started.

Does anyone have any idea which configuration exactly i'm missing?

Thanks in advance.

*This post is locked for comments

  • Verified answer
    JayeshAC Profile Picture
    JayeshAC 1,157 on at
    RE: Not able to connect to MSCRM On-prem Org through Outlook client 2016.

    We have resolved this issue.

    Please follow the below approach for those who are facing the same issue.

    1. Enable string SSL Protocol on your local VM.

    2. For safety reasons, disable SSL 3.0, RC4 and Triple DES security protocols as they are vulnerable to attacks.

  • JayeshAC Profile Picture
    JayeshAC 1,157 on at
    RE: Not able to connect to MSCRM On-prem Org through Outlook client 2016.

    Does anyone have any idea how to resolve the above issue?

  • JayeshAC Profile Picture
    JayeshAC 1,157 on at
    RE: Not able to connect to MSCRM On-prem Org through Outlook client 2016.

    Missed to add some points in above post:

    1. I'm able to browse the same org from web.

    2. Different users from another client machines are able to configure the same org through outlook client 2016.

    3. All Client machines and CRM server belongs to same domain.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans