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