Mandatory updates for Microsoft Dynamics CRM could not be applied successfully


To totally unlock this section you need to Log-in


Login

During a rollout of the Outlook CRM add-in client on various workstations running both Windows 7 and Windows XP, you could encounter an issue where you simply could not configure the Outlook CRM Client.

The errors are "Mandatory updates for Microsoft Dynamics CRM could not be applied successfully" and in the actual log file "System.Configuration.ConfigurationErrorsException: Unrecognized configuration section system.serviceModel. (c:WINDOWSMicrosoft.NETFrameworkv2.0.50727Configmachine.config".

The interesting sections of the configuration log file are:

12:18:45| Error| Microsoft.Crm.Setup.Common.SetupException: Mandatory updates for Microsoft Dynamics CRM could not be applied successfully. Try running the application again.
at Microsoft.Crm.Config.Client.UI.ServerUrlPage.CheckForUpdates(ClientConfigInfo configInfo)
at Microsoft.Crm.Config.Client.UI.ServerUrlPage.InitializeServerInfo(Uri discoveryUrl, Uri extranetDiscoveryUrl)
at Microsoft.Crm.Config.Common.UI.ServerUrlPage.ServerUrlPage_NextClicked(Object sender, NavigationEventArgs e)
at Microsoft.Crm.Setup.Common.UI.WizardPage.RaiseNextClicked(Object sender, NavigationEventArgs e)
at Microsoft.Crm.Setup.Common.UI.Wizard.NextButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.PerformClick()
at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.ContainerControl.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg), Error, OK, Option1

11:48:10| Error| Configuration exception.System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize —> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section system.serviceModel. (c:WINDOWSMicrosoft.NETFrameworkv2.0.50727Configmachine.config line 146) at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors) at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors() at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey) — End of inner exception stack trace —

In this can the fix is to remove .NET Framework 3.5 SP1. After removing .NET Framework 3.5 SP1, the client is able to configure the Outlook CRM Client right away even without a reboot. After the configuration of the CRM Client you will can to reinstall .NET Framework 3.5 SP1 without new issues.

In case of Microsoft Dynamics CRM 4.0, when this version is setup with a dedicated Application Server and a dedicated Platform Server you receive the following error when you configure the Outlook client:

Mandatory Updates for Microsoft Dynamics CRM could not be applied successfully

You may also receive the following:

EventType : crmmanaged     P1 : 4.0.7333.2138    
P2 : microsoft.crm.client.autoupdate     P3 : microsoft.crm    
P4 : client found response content type of 'text_html'_ but expected 'text_xml'.

Causes

  • Cause 1: you enter the Application Server url while configuring the Outlook client instead of the Platform Server.
  • Cause 2: the Microsoft CRM Asynchronous Processing Service is not running.

Resolution

When you configure the Outlook client, provide the Platform Server URL by doing the following:

Install the Microsoft Dynamics CRM 4.0 Outlook Client

  • Click on Start, then click All Programs, then click Microsoft Dynamics CRM and then click Configuration Wizard.
  • Click on Change Configuration.
  • Click on Next.
  • Click on My company.

On the screen where it shows Connect to Microsoft Dynamics CRM at the intranet address provide the platform server name:

http://platservername:5555  (In this example the server is configured to use port 5555)

On the Microsoft Dynamics CRM 4.0 Server, start the Microsoft CRM Asynchronous Processing Service by doing the following:

  • Click Start.
  • Click Run.
  • Type: services.msc
  • In the Services window, Right-click the Microsoft CRM Asynchronous Processing Service.

  • Click Start on the new menu appeared.