CRM 2011 outlook client configuration error: There is a problem communicating with the Microsoft Dynamics CRM server.

Answered CRM 2011 outlook client configuration error: There is a problem communicating with the Microsoft Dynamics CRM server.

  • donderdag 29 maart 2012 11:54
     
     

    Hey,

    First the setup: CRM 2011 RU6 on server and client, Outlook 2010, Windows 7.

    I have tried everything I can think of and/or find to try and fix this but still no luck. I can't remember exactly when it started happening but around January of this year I could not configure my CRM client in Outlook to connect to our on-premise server. I appear to be the only person with this problem. The config log file has the following error:

    17:07:50|  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)

    and earlier it shows this line:

    17:07:17|   Info| Client Configuration Wizard Running Mode : Normal

    when I compare my log to other users where the config worked fine their running mode is showing as Reduced UI; can anyone tell me what the difference is and how I can change this?

    The trace file has the following errors:

    >Error occurred while refreshing registry cache, cache has been cleared. Exception: System.IO.IOException: No more data is available.

       at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
       at Microsoft.Win32.RegistryKey.GetValueNames()
       at Microsoft.Crm.RegistryCollection.UpdateCollection(Object sender, EventArgs e)
    [2012-03-29 10:19:52.213] Process:Microsoft.Crm.Application.Outlook.ConfigWizard |Organization:00000000-0000-0000-0000-000000000000 |Thread:    9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info | MiniDump.CreateDumpInternal
    at MiniDump.CreateDumpInternal(MiniDumpReasons reason, Exception exception)
    at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, Boolean enableTrace)
    at CredentialManager.ReadCredentials(Uri target)
    at ClientAuthProvidersFactory`1.ValidateCredentials(Uri endPoint, Credential credentials)
    at ClientAuthProvidersFactory`1.GetAuthProviderForDeployment(Uri endPoint, Credential credentials, Uri webEndPoint)
    at DeploymentInfo.ValidateAuthProvider()
    at DeploymentsInfo.SortAndValidateDeployments()
    at DeploymentsInfo.LoadOrganizations(AuthUIMode uiMode, Form parentWindow)
    at ServerForm.LoadOrganizations(Boolean forceUI)
    at ServerForm.<InitializeBackgroundWorkers>b__0(Object sender, DoWorkEventArgs e)
    at BackgroundWorker.OnDoWork(DoWorkEventArgs e)
    at BackgroundWorker.WorkerThreadStart(Object argument)
    at StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    at StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
    at AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
    at QueueUserWorkItemCallback.WaitCallback_Context(Object state)
    at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
    at ThreadPoolWorkQueue.Dispatch()

    >Error occurred while refreshing registry cache, cache has been cleared. Exception: System.IO.IOException: No more data is available.

       at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
       at Microsoft.Win32.RegistryKey.GetValueNames()
       at Microsoft.Crm.RegistryCollection.UpdateCollection(Object sender, EventArgs e)
    [2012-03-29 10:20:07.188] Process:Microsoft.Crm.Application.Outlook.ConfigWizard |Organization:00000000-0000-0000-0000-000000000000 |Thread:    9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info | CounterList.TraceOrderedInstanceXml
    at CounterList.TraceOrderedInstanceXml()
    at CounterList.Dispose()
    at DynamicMetadataCacheFactory.LoadMetadataCache(LoadMethod method, CacheType type, IOrganizationContext context)
    at MetadataCache.LoadCache(IOrganizationContext context, Boolean fileOnlyIfExists)
    at MetadataCache.GetInstance(IOrganizationContext context)
    at OutlookConfigurator.InitializeMapiStoreForFirstTime()
    at OutlookConfigurator.Configure(IProgressEventHandler progressEventHandler)
    at ConfigEngine.Configure(Object stateInfo)
    at QueueUserWorkItemCallback.WaitCallback_Context(Object state)
    at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
    at ThreadPoolWorkQueue.Dispatch()
    ><CounterList Name="LoadMetadataCache - LoadMethod=LocalFileOnly CacheType=InstanceMemoryEfficient IsInClientContext=True" TotalTimeMSec="7584.7584"><CounterList Name="LoadCacheForRichClient - LoadMethod=LocalFileOnly LoadMasks=All, OData IsInOfflineClientContext=False IsInHosterContext=False" TotalTimeMSec="7584.7584" PercentFromTotal="100"><CounterList Name="LoadCacheFromWebService = writeCacheToLocalFile=True" TotalTimeMSec="7564.7564" PercentFromTotal="99.74"><CounterList Name="LoadMetadataFromWebServiceIntoStream = compressData=True" TotalTimeMSec="4901.4901" PercentFromTotal="64.79"><CounterList Name="RetrieveMetadataForRichClient SDK call" TotalTimeMSec="4901.4901" PercentFromTotal="100" /></CounterList><CounterList Name="LoadCacheFromXml - LoadMasks=All, OData" TotalTimeMSec="1566.1566" PercentFromTotal="20.7"><CounterList Name="BuildContainerFromXml" TotalTimeMSec="1377.1377" PercentFromTotal="87.93"><CounterList Name="LoadDescriptionsFromXml - MetadataEntityName=Attribute" TotalTimeMSec="673.0673" PercentFromTotal="48.87"><CounterList Name="Add data to the collection" TotalTimeMSec="670.067" PercentFromTotal="99.55" /><CounterList Name="Identify and set collection size" TotalTimeMSec="3.0003" PercentFromTotal="0.45" /></CounterList><CounterList Name="LoadDescriptionsFromXml - MetadataEntityName=LocalizedLabel" TotalTimeMSec="219.0219" PercentFromTotal="15.9"><CounterList Name="Add data to the collection" TotalTimeMSec="167.0167" PercentFromTotal="76.26" /><CounterList Name="Identify and set collection size" TotalTimeMSec="52.0052" PercentFromTotal="23.74" /></CounterList><CounterList Name="LoadDescriptionsFromXml - MetadataEntityName=OptionSet" TotalTimeMSec="135.0135" PercentFromTotal="9.8"><CounterList Name="Add data to the collection" TotalTimeMSec="124.0124" PercentFromTotal="91.85" /><CounterList Name="Identify and set collection size" TotalTimeMSec="11.0011" PercentFromTotal="8.15" /></CounterList><CounterList Name="LoadAttributesHelper" TotalTimeMSec="74.0074" PercentFromTotal="5.37"><CounterList Name="LoadDescriptionsFromXml - MetadataEntityName=ViewAttribute" TotalTimeMSec="50.005" PercentFromTotal="67.57"><CounterList Name="Identify and set collection size" TotalTimeMSec="34.0034" PercentFromTotal="68" /><CounterList Name="Add data to the collection" TotalTimeMSec="16.0016" PercentFromTotal="32" /></CounterList><CounterList Name="LoadDescriptionsFromXml - MetadataEntityName=AttributeLookupValue" TotalTimeMSec="12.0012" PercentFromTotal="16.22"><CounterList Name="Add data to the collection" TotalTimeMSec="7.0007" PercentFromTotal="58.33" /><CounterList Name="Identify and set collection size" TotalTimeMSec="5.0005" PercentFromTotal="41.67" /></CounterList></CounterList><CounterList Name="LoadDescriptionsFromXml - MetadataEntityName=EntityRelationshipRole" TotalTimeMSec="54.0054" PercentFromTotal="3.92"><CounterList Name="Add data to the collection" TotalTimeMSec="51.0051" PercentFromTotal="94.44" /><CounterList Name="Identify and set collection size" TotalTimeMSec="3.0003" PercentFromTotal="5.56" /></CounterList><CounterList Name="LoadDescriptionsFromXml - MetadataEntityName=EntityRelationshipRelationships" TotalTimeMSec="42.0042" PercentFromTotal="3.05"><CounterList Name="Identify and set collection size" TotalTimeMSec="29.0029" PercentFromTotal="69.05" /><CounterList Name="Add data to the collection" TotalTimeMSec="13.0013" PercentFromTotal="30.95" /></CounterList><CounterList Name="LoadOrgSettings" TotalTimeMSec="40.004" PercentFromTotal="2.9" /><CounterList Name="LoadDescriptionsFromXml - MetadataEntityName=Relationship" TotalTimeMSec="35.0035" PercentFromTotal="2.54"><CounterList Name="Add data to the collection" TotalTimeMSec="35.0035" PercentFromTotal="100" /><CounterList Name="Identify and set collection size" TotalTimeMSec="0" PercentFromTotal="0" /></CounterList><CounterList Name="LoadDescriptionsFromXml - MetadataEntityName=Entity" TotalTimeMSec="32.0032" PercentFromTotal="2.32"><CounterList Name="Add data to the collection" TotalTimeMSec="32.0032" PercentFromTotal="100" /><CounterList Name="Identify and set collection size" TotalTimeMSec="0" PercentFromTotal="0" /></CounterList><CounterList Name="LoadOptionSetsHelper" TotalTimeMSec="21.0021" PercentFromTotal="1.53"><CounterList Name="LoadDescriptionsFromXml - MetadataEntityName=AttributePicklistValue" TotalTimeMSec="20.002" PercentFromTotal="95.24"><CounterList Name="Add data to the collection" TotalTimeMSec="14.0014" PercentFromTotal="70" /><CounterList Name="Identify and set collection size" TotalTimeMSec="6.0006" PercentFromTotal="30" /></CounterList></CounterList><CounterList Name="LoadDescriptionsFromXml - MetadataEntityName=EntityRelationship" TotalTimeMSec="18.0018" PercentFromTotal="1.31"><CounterList Name="Add data to the collection" TotalTimeMSec="16.0016" PercentFromTotal="88.89" /><CounterList Name="Identify and set collection size" TotalTimeMSec="1.0001" PercentFromTotal="5.56" /></CounterList><CounterList Name="LoadDescriptionsFromXml - MetadataEntityName=RelationshipExtraCondition" TotalTimeMSec="12.0012" PercentFromTotal="0.87"><CounterList Name="Add data to the collection" TotalTimeMSec="9.0009" PercentFromTotal="75" /><CounterList Name="Identify and set collection size" TotalTimeMSec="3.0003" PercentFromTotal="25" /></CounterList><CounterList Name="LoadDescriptionsFromXml - MetadataEntityName=Privilege" TotalTimeMSec="5.0005" PercentFromTotal="0.36"><CounterList Name="Add data to the collection" TotalTimeMSec="5.0005" PercentFromTotal="100" /><CounterList Name="Identify and set collection size" TotalTimeMSec="0" PercentFromTotal="0" /></CounterList><CounterList Name="LoadVersion" TotalTimeMSec="0" PercentFromTotal="0" /><CounterList Name="LoadDescriptionsFromXml - MetadataEntityName=ManagedProperty" TotalTimeMSec="0" PercentFromTotal="0"><CounterList Name="Add data to the collection" TotalTimeMSec="0" PercentFromTotal="0" /><CounterList Name="Identify and set collection size" TotalTimeMSec="0" PercentFromTotal="0" /></CounterList></CounterList><CounterList Name="BuildMetadataCacheFromMetadataContainer" TotalTimeMSec="169.0169" PercentFromTotal="10.79"><CounterList Name="MemoryEfficientMetadataCacheDataProvider - create and initialize" TotalTimeMSec="169.0169" PercentFromTotal="100" /></CounterList></CounterList><CounterList Name="Build XmlDocument from XmlReader" TotalTimeMSec="813.0813" PercentFromTotal="10.75" /><CounterList Name="WriteCacheToLocalFile" TotalTimeMSec="203.0203" PercentFromTotal="2.68" /></CounterList><CounterList Name="LoadCacheFromLocalFile" TotalTimeMSec="20.002" PercentFromTotal="0.26" /></CounterList></CounterList>
    [2012-03-29 10:20:07.361] Process:Microsoft.Crm.Application.Outlook.ConfigWizard |Organization:00000000-0000-0000-0000-000000000000 |Thread:    9 |Category: Platform.Metadata |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose | OfflineWatcher..cctor
    at OfflineWatcher..cctor()
    at OfflineWatcher.add_RCWentOnline(RCWentOnlineEventHandler value)
    at ClientCrmCache`1.RegisterEvents(NotificationEventType[] eventTypes, NotificationEventHandler notificationHandler)
    at ClientCrmCache`1..ctor(String cacheIdentifier, NotificationEventType[] eventTypes, NotificationEventHandler notificationHandler, SharedCacheBaseLoadCacheDataCallback`1 loadCacheData)
    at ClientCrmCacheFactory.GetCrmCache(String cacheId, NotificationEventType[] eventType, NotificationEventHandler eventHandler, TimeSpan expirationLength, Boolean isExpirationSliding, SharedCacheBaseLoadCacheDataCallback`1 refreshCallback)
    at CrmMultiOrgCache`2..ctor(String cacheIdentifier, NotificationEventType[] eventType, TimeSpan expirationLength, Boolean isExpirationSliding)
    at OrganizationCache..ctor()
    at OrganizationCache..cctor()
    at OrganizationCache.Instance()
    at OutlookConfigurator.InitializeMapiStoreForFirstTime()
    at OutlookConfigurator.Configure(IProgressEventHandler progressEventHandler)
    at ConfigEngine.Configure(Object stateInfo)
    at QueueUserWorkItemCallback.WaitCallback_Context(Object state)
    at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
    at ThreadPoolWorkQueue.Dispatch()

    >Unable to Read RCOffline registry value
    [2012-03-29 10:20:19.771] Process:Microsoft.Crm.Application.Outlook.ConfigWizard |Organization:00000000-0000-0000-0000-000000000000 |Thread:    5(MSCRM:-RegistryWatcher.RegTrackerThreadProc) |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose | RegistryKeyChangedEventHandler.Invoke
    at RegistryKeyChangedEventHandler.Invoke(Object sender, EventArgs e)
    at RegistryWatcher.RegTrackerThreadProc()
    at ThreadHelper.ThreadStart_Context(Object state)
    at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at ThreadHelper.ThreadStart()

    >Crm Exception: Message: Invalid OrganizationId "6156a5b3-5fe5-4ab2-9d35-059c8615a5d5"., ErrorCode: -2147220970
    [2012-03-29 10:20:19.817] Process:Microsoft.Crm.Application.Outlook.ConfigWizard |Organization:00000000-0000-0000-0000-000000000000 |Thread:   10 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info | MiniDump.CreateDumpInternal
    at MiniDump.CreateDumpInternal(MiniDumpReasons reason, Exception exception)
    at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, Boolean enableTrace)
    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 TimerQueueTimer.CallCallbackInContext(Object state)
    at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at TimerQueueTimer.CallCallback()
    at TimerQueueTimer.Fire()
    at TimerQueue.FireNextTimers()
    at TimerQueue.AppDomainTimerCallback()
    >MiniDump: TraceDirectory setting not set or missing. Defaulting to temporary folder.
    [2012-03-29 10:20:19.824] Process:Microsoft.Crm.Application.Outlook.ConfigWizard |Organization:00000000-0000-0000-0000-000000000000 |Thread:   10 |Category: Platform.Sdk |User: 00000000-0000-0000-0000-000000000000 |Level: Warning | ClientCrmCacheInternal.InvokeAllCallbacks
    at ClientCrmCacheInternal.InvokeAllCallbacks(Object nullObject)
    at TimerQueueTimer.CallCallbackInContext(Object state)
    at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at TimerQueueTimer.CallCallback()
    at TimerQueueTimer.Fire()
    at TimerQueue.FireNextTimers()
    at TimerQueue.AppDomainTimerCallback()
    >Failed to refresh entry. Exception Microsoft.Crm.Application.SMWrappers.InvalidOrganizationIdException: Invalid OrganizationId "6156a5b3-5fe5-4ab2-9d35-059c8615a5d5".
       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)
    [2012-03-29 10:20:19.925] Process:Microsoft.Crm.Application.Outlook.ConfigWizard |Organization:00000000-0000-0000-0000-000000000000 |Thread:   10 |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 TimerQueueTimer.CallCallbackInContext(Object state)
    at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at TimerQueueTimer.CallCallback()
    at TimerQueueTimer.Fire()
    at TimerQueue.FireNextTimers()
    at TimerQueue.AppDomainTimerCallback()

    I can access the CRM via web client without issue and if I try to setup the CRM client on a different machine I get the same problem; even though the CRM client is already installed on that same machine for a different user and it works fine for them.

    Really hope someone can help me with this.

    Thanks,
    Reece

Alle reacties

  • donderdag 29 maart 2012 12:36
     
     

    hi

     have a look at this related post .

    http://social.microsoft.com/Forums/en-US/crm/thread/403f8696-8f64-4f4d-8177-a3abea6abc8c

    hth

    dkay


     if the response answered your question, please take a minute and mark the response as an answer.
    • Bewerkt door D kay donderdag 29 maart 2012 12:37
    •  
  • donderdag 29 maart 2012 13:15
     
     

    Unfortunately I could find nothing there that has helped. Some of it I have already tried, others are not the same.

    Thanks for the pointer.

  • maandag 30 april 2012 17:37
     
     
    I have this same problem.. . did you every find out how to fix it?
  • dinsdag 1 mei 2012 4:51
    Moderator
     
     

    Have you tried the new CRM for Outlook troubleshooter? It diagnoses and resolves a lot of common issues such as this one.


    Neil Benson, CRM Addict and MVP at Slalom Consulting. Find me on Twitter. Join over 20,000 other CRM professionals on the Microsoft Dynamics CRM group on LinkedIn.

  • dinsdag 1 mei 2012 10:05
     
     Antwoord

    For me there was a work around which was to change my user in the CRM from Access Mode of Read-Write to Access Mode of Administrative then re-configure the Outlook client before changing my Access Mode back to Read-Write and making sure Restricted Access Mode is not ticked again.

    This allows me to configure my client correctly! According to my Microsoft engineer this is a known bug that is not easy to pinpoint as it doesn't happen that often and so they haven't found the cause yet.

    Of course this is only a workaround and anytime I want to reconfigure my client to point somewhere else (test server perhaps) I need to do the same steps.

    • Als antwoord gemarkeerd door Reece Campbell dinsdag 1 mei 2012 10:05
    •  
  • dinsdag 1 mei 2012 10:07
     
     

    Just had a look at this and it is a good tool to use as I can see all of the suggested fixes I have found previously and this will be good for the majority of these cases, however not useful for my bug in any way other than to rule out the other fixes; which of course in itself is still useful.

    Thanks for that link and I will use it for other troubleshooting in future, I am sure there will still be much troubleshooting of Outlook/CRM in my future