Hello, we ran into an issue a couple of days ago where we were no longer able to connect to CRM from either Outlook or a browser. I resolved this problem by disabling and re-enabling claims-based authenitcation and IFD and also set the time properly on the CRM server.
A day and a half later the Outlook client will not connect to the server. I've tried everything I could find online including:
1.) Checking the time again which is fine
2.) Checking the bindings: We have 1 https and 1 http binding
3.) Rebooting the web server
4.) Checking the event logs
5.) Running traces on Outlook (see below)
6.) Checking the logs (see below)
Can someone please take a look and tell me what I might be missing?
Here are the errors from the log:
09:32:14| Error| Error connecting to URL: crmserver.domain.com/.../Discovery.svc Exception: Microsoft.Crm.CrmException: Credentials required
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)
===========================
09:32:23| Error| Exception : The given key was not present in the dictionary. at Microsoft.Crm.MapiStore.DataStore.WaitInitialized()
at Microsoft.Crm.Application.Outlook.Config.OutlookConfigurator.InitializeMapiStoreForFirstTime()
at Microsoft.Crm.Application.Outlook.Config.OutlookConfigurator.Configure(IProgressEventHandler progressEventHandler)
at Microsoft.Crm.Application.Outlook.Config.ConfigEngine.Configure(Object stateInfo)
============================
Here are the errors from the Trace:
[2013-07-10 09:38:19.151] Process:OUTLOOK |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error | InvalidOrganizationIdException..ctor at InvalidOrganizationIdException..ctor(Guid organizationId) at ClientOrganizationContextFactory.Get(Guid organizationId) at ClientOrganizationContextFactory.Microsoft.Crm.IOrganizationContextFactory.GetOrganizationContext(Guid organizationId) at CrmMultiOrgCache`2.RefreshClientEntryCallback(String key) at ClientCrmCache`1.RefreshEntryWaitCallback(Object keyString) at ClientCrmCacheInternal.InvokeAllCallbacks(Object nullObject) at _TimerCallback.TimerCallback_Context(Object state) at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
=============================
[2013-07-10 09:38:19.183] Process:OUTLOOK |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform.Sdk |User: 00000000-0000-0000-0000-000000000000 |Level: Warning | ClientCrmCache`1.RefreshEntryWaitCallback at ClientCrmCache`1.RefreshEntryWaitCallback(Object keyString) at ClientCrmCacheInternal.InvokeAllCallbacks(Object nullObject) at _TimerCallback.TimerCallback_Context(Object state) at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at _TimerCallback.PerformTimerCallback(Object state) >Failed to refresh entry. Exception Microsoft.Crm.Application.SMWrappers.InvalidOrganizationIdException: Invalid OrganizationId "70f295ee-5c03-4f70-bfb2-2cb4759709af". at Microsoft.Crm.Application.SMWrappers.ClientOrganizationContextFactory.Get(Guid organizationId) at Microsoft.Crm.Application.SMWrappers.ClientOrganizationContextFactory.Microsoft.Crm.IOrganizationContextFactory.GetOrganizationContext(Guid organizationId) at Microsoft.Crm.Caching.CrmMultiOrgCache`2.RefreshClientEntryCallback(String key) at Microsoft.Crm.ClientCrmCache`1.RefreshEntryWaitCallback(Object keyString)
My trace is attached as well
Please help.
Thanks,
Tony