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



The path is not of a legal form

While installing the Dynamics CRM Data Migration Manager on a Dynamics CRM server, you might get this error message:


The path is not of a legal form

To solve this error you should go to the registry and change the InstallLocation of the CRM server. The location is different for x86 and x64, but can easily be found by going to:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\]

In this key you should search for the key which contains "Microsoft Dynamics CRM Server". This should bring you to a location like:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\C5D06E9536719E94DB7D0491EB205E22\InstallProperties]

In this key you should set the value for "InstallLocation" to "C:\Program Files\Microsoft Dynamics CRM ". The installation of the Dynamics CRM Data Migration Manager will then continue.

Credits for this solution go out to the CRM community where I found this solution.



Unexpected 401 when using NetworkService in Web Service call

When you are calling any CRM Web Service and you decide to specify your own credentials by using a new instance of NetworkCredential, then you should make sure that you are not specifying the 'UseDefaultCredentials' after you have specified the Credentials. This will cause IIS to not fully understand how to authenticate. The result is that you will get this 401.2 error message: Unauthorized: Access is denied due to server configuration. Internet Information Services (IIS).

So this code causes the error message:


CrmService service = new CrmService();
service.Credentials = new System.Net.NetworkCredential("user", "pwd", "domain");
service.UseDefaultCredentials = false;
service.CrmAuthenticationTokenValue = token;

And this is how it should be:

CrmService service = new CrmService();
service.Credentials = new System.Net.NetworkCredential("user", "pwd", "domain");
service.CrmAuthenticationTokenValue = token;



Loveparade drama

For those of you who do know me a bit, you'll know that I'm a fan of the Love Parade. Every year I'm there. This year was no different in that regards, a friend, my girlfriend and myself have attend this event this years Love Parade as well. As you might have heard, there has been a dramatic incident at the party this year which caused 19 people to die and hunderds of people to get insured. I'm glad to mention that we are fine, but we are terribly sad for the people who are not.

I have no words for what has happened.

Ronald



MVP reawarded

I’d like to share with you that Microsoft has awarded me for the fifth time in a row the MVP award. This award is given by Microsoft to the people who are considered to be community leaders in a specific technology. This year some of my community activities include

- Giving presentations on the Convergence in Frankfurt en Rotterdam to +/- 200 Dynamics CRM customers
- Sharing insight about how to position Dynamics CRM and SharePoint for 50 Microsoft partners
- Keeping up to date a blog with about 12.000 page views each month[1]
- Supporting a student with her final thesis around “CRM in a museum”
- Membership of the Microsoft driven Dynamics CRM Content Advisory Board

I'd also like to use this opportunity to share my greatest respect for two of the MVP's who are leaving the group. I've always looked at these guys as thought leaders. These guys have helped me out so many times and I'm sure they will stay my mentors. Thanks Matt Parks! Thanks Guy Riddle! I'm sure we'll meet again.



Performance test with 100.000 concurrent users

Did you know that Microsoft and Dell performed a performance test on Dynamics CRM which included 100.000 concurrent users? They created a whitepaper about this test. If you're worried about the capabilities of the Dynamics CRM / xRM platform, then this is a must read: Download

Here's the summary of the white paper:

Microsoft® Dynamics CRM 4.0 is designed to help enterprise organizations attain a 360-degree view of customers, achieve reliable user adoption, adapt quickly to business change, and accelerate project delivery and returns—all on a platform that provides enterprise levels of scalability and performance. This white paper focuses on system configuration for the support of high-scale systems in virtual environments.

Microsoft, working with Intel® Corporation and Dell Inc., completed workload test of virtualized Microsoft Dynamics CRM 4.0 on Dell™ PowerEdge™ R910 servers equipped with Intel® Xeon® Processor 7500 Series and solid state drives (SSDs).With 20 virtual machines (VMs) on two Dell PowerEdge R910 servers, Microsoft Dynamics CRM 4.0 was able to sustain 100,000 users showing its ability to scale on a hardware platform ideal for large-scale application consolidation projects.

Results Summary
Benchmark testing was performed on a Microsoft Dynamics CRM 4.0 implementation that included Microsoft® Windows Server® 2008 R2 Hyper-V and Microsoft SQL Server® 2008 R2, two Dell PowerEdge R910 servers running Intel® Xeon® Processors 7500 Series-based with storage managed by a Dell PowerVault™ MD1220 with solid state drives.

Large enterprises often deploy multiple parallel CRM instances to meet the diverse needs of different business units or geographies. Microsoft Dynamics CRM meets this need through a multi-tenant architecture which can add independent tenants to a shared hardware and management environment. Microsoft Dynamics CRM’s multi-tenant capabilities were employed to create five organizations running under a single deployment with workload distributed across 20 virtual machines. In this test environment, Microsoft Dynamics CRM 4.0 demonstrated the following performance characteristics:

Concurrent Users: 100,000
Average Response Time: .29 seconds
Web Requests: 5.1 M/hr.
Business Transactions: 778,000/hr.

According to the Microsoft Dynamics CRM Scalability Benchmark May 2009 study, performance results with half as many concurrent users were as follows:

Concurrent Users: 50,000
Average Response Time: .12 seconds
Web Requests: 2.4 M/hr.
Business Transactions: 374,000/hr.

This workload demonstrates that five Microsoft Dynamics CRM 4.0 instances can achieve sub-second response times with 100,000 concurrent users executing a heavy workload in a virtual environment.

This white paper details the results of workload testing conducted on Microsoft Dynamics CRM 4.0 running on a Dell PowerEdge R910 server with Intel® X7560 (Nehalem-EX) processors and solid state drives. Included are:

• A description of the CRM implementation and the methods used to obtain the benchmark.

• Details of the hardware configuration and optimization settings used in testing.

• A summary of the key test parameters and results achieved.

These results reflect the scalability and performance of a specific Microsoft Dynamics CRM 4.0 implementation running in a particular test environment powered by Intel® Xeon® Processors 7500 Series-based servers. Each organization is different; factors ranging from industry vertical to geographic span can affect how an enterprise organization uses its CRM system, so results will vary for each implementation. Customers may be able to achieve higher levels of performance and scalability through customization and a finer level of optimization.



Special Epicenter price for my blog readers

The organization of Epicenter have very kindly allocated 10 'concession tickets' for me to offer to people.

One Day €129.00 Now €50.00 Save €80.00

Two Days* €189.00 Now €100.00 Save €90.00

Three Days* €229.00 Now €150.00 Save €80.00

Four Days* €239.00 Now €200.00 Save €39.00

Be the first to book. More details:
http://epicenter.ie/2010_Ronald_Lemmen_Page