Error: Microsoft.Crm.Setup.Server.PublishDefaultDataAction

When you have uninstalled CRM and try to install this again, you might run into the following error message:


Microsoft.Crm.Setup.Server.PublishDefaultDataAction failed --->System.MissingMethodException: Method not found: 'Void Microsoft.Crm.CrmCache`1.RemoveEntry(System.String)'.

This is being caused by the fact that you have other components of CRM still installed from the previous installation. Make sure you remove all components including the SSRS connector, the Outlook client and the E-mail router. That should help you fix the problem.

Kudos go out to my colleague Alex Ries who found this solution.

For reference purposes the exact log message (can be found in %\AppData\Microsoft\MSCRM\Logs).

05:45:38|Verbose| Web Wizard import: Success
05:45:38|Verbose| Business Task import: Success
05:45:38| Info| Executing Install action: Microsoft.Crm.Setup.Server.PublishDefaultDataAction
05:45:50| Error| System.Exception: Action Microsoft.Crm.Setup.Server.PublishDefaultDataAction failed. ---> System.MissingMethodException: Method not found: 'Void Microsoft.Crm.CrmCache`1.RemoveEntry(System.String)'.
at Microsoft.Crm.Caching.CrmMultiOrgCache`2.RemoveEntry(Guid organizationId, TKey key, Boolean fireNotification)
at Microsoft.Crm.Caching.CrmMultiOrgCache`2.RemoveEntry(Guid organizationId, TKey key)
at Microsoft.Crm.Metadata.LabelCache.Flush(Int32 languageCode, IOrganizationContext context, CacheType cacheType)
at Microsoft.Crm.Setup.Server.Utility.NewOrgUtility.OrganizationPublishDefaultData(Guid organizationId)
at Microsoft.Crm.Setup.Server.PublishDefaultDataAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Common.Action.ExecuteAction(Action action, IDictionary parameters, Boolean undo)
--- End of inner exception stack trace ---, Error, RetryCancel, Option1

7 comments:

Viranga Kekulawala said...

We got same error message when we try to modify Plug-in, using tool and Removing the email router could not be a feasible solution to our scenario. We faced same issue and managed to fix without removing Email router. We applied Rollup packages for CRM 4.0 Server and Email Router.
Rollup packages are as follows:
• CRMv4.0- KB2267499-amd64-Server-LangID.exe
• CRMv4.0- KB2267499-amd64-Router-LangID .exe
• CRMv4.0- KB2267499-amd64-SRS-LangID.exe
• CRMv4.0- KB2267499-amd64-MUI-LangID.exe
http://support.microsoft.com/kb/2267499

computer support said...

Im hoping this is a fresh installation. I suggest u try these.



1. Delete the config database form SQL

2. Delete the program files directry of your CRM after uninstalling.

3. Then uninstall and reisntall IIS.



Then before u run the setup make sure your Windows Server is running SP2 and all updates have been installed. (Windows Update)



Install IIS and then run the CRM setup.

Hélder Oliveira said...

I Ronald i have this error:

"A acção Microsoft.Crm.Setup.Common.Update.DBUpdateAction falhou.

Exception has been thrown by the target of an invocation.

Unable to load DLL 'CRMCore.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"

any suggestion...
Thanks!

Ronald Lemmen said...

Hi Hélder Oliveira,

That's an error that I haven't seen before. I'm sure you have tried searching online before, so if that doesn't help either, then you can try reinstalling your server before installing CRM, or if that's not an option, then contact Microsoft support and ask them for help.

If you do find the solution, I'd be great if you can share that as well for future references.

Good luck!
Ronald

Hélder Oliveira said...

Hi Ronald

Already solved the problem.
During the installation of the Rollup 17 CRMCore.dll is not found by the environment variables that did was add the folder c: / Program Files / Microsoft Dynamics CRM / Server / bin to environment variables.
Follow the instructions:
http://www.computerhope.com/issues/ch000549.htm

Best Regards

Gaspard said...

Hi,

I updated my custom workflow so it doen't work right now.

I got this message :

# CRM Tracing Version 2.0
# LocalTime: 2013-02-11 10:07:54.3
# Categories:
# CallStackOn: No
# ComputerName: DATASRVCRM4
# CRMVersion: 4.0.7333.2644
# DeploymentType: OnPremise
# ScaleGroup:
# ServerRole: AppServer, AsyncService, DiscoveryService, WebService, ApiServer, HelpServer, DeploymentService

cutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
à System.Workflow.Runtime.Scheduler.Run()
[2013-02-11 17:20:22.9] Process:CrmAsyncService |Organization:ebb0911a-4b69-e211-8ad0-00155d641603 |Thread: 4 |Category: Platform.Workflow |User: 00000000-0000-0000-0000-000000000000 |Level: Error | WorkflowHost.OnWorkflowTerminated

# LocalTime: 2013-02-11 17:30:17.1
# Categories:
# CallStackOn: No
# ComputerName: DATASRVCRM4
# CRMVersion: 4.0.7333.2644
# DeploymentType: OnPremise
# ScaleGroup:
# ServerRole: AppServer, AsyncService, DiscoveryService, WebService, ApiServer, HelpServer, DeploymentService

[2013-02-11 17:30:17.1] Process:CrmAsyncService |Organization:ebb0911a-4b69-e211-8ad0-00155d641603 |Thread: 15 |Category: Platform.Workflow |User: 00000000-0000-0000-0000-000000000000 |Level: Error | WorkflowHost.OnWorkflowTerminated
>Workflow terminated: {D9A10846-6874-E211-BAC0-00155D641603} - System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
à Datasurf.Crm.Data.datasurf_create_oit_create_campaign_oas.datasurf_create_oit_create_campaign_oas.Execute(IWorkflowContext ctx, String connexionString, String fonction, String accountid, String user, String password) dans D:\CrmMedia\DLL\Datasurf.Crm.Data.datasurf_create_oit_campaign_oas\datasurf_create_oit_create_campaign_oas.cs:ligne 32
à WF_datasurf_oit_create_campaign_crm.datasurf_oit_create_campaign_oas.Execute(ActivityExecutionContext executionContext)
à System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
à System.Workflow.ComponentModel.CompositeActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
à System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)
à System.Workflow.ComponentModel.ActivityExecutionFilter.Execute(Activity activity, ActivityExecutionContext executionContext)
à System.Workflow.ComponentModel.FaultAndCancellationHandlingFilter.Execute(Activity activity, ActivityExecutionContext executionContext)
à System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
à System.Workflow.Runtime.Scheduler.Run()
# CRM Tracing Version 2.0
# LocalTime: 2013-02-11 17:44:04.2
# Categories:
# CallStackOn: No
# ComputerName: DATASRVCRM4
# CRMVersion: 4.0.7333.2644
# DeploymentType: OnPremise
# ScaleGroup:
# ServerRole: AppServer, AsyncService, DiscoveryService, WebService, ApiServer, HelpServer, DeploymentService


Please help.

Microsoft CRM Training said...

I am getting a bit different error than this :/
Don't know what to do with it :S