Error message when you upgrade from Microsoft Dynamics CRM 3.0 to Microsoft Dynamics CRM 4.0: "Out of Memory exception"

Article translations Article translations
Article ID: 958074 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

When you upgrade from Microsoft Dynamics CRM 3.0 to Microsoft Dynamics CRM 4.0, you may receive the following error message:
Out of Memory exception
You may receive this error message while the Microsoft.Crm.Setup.Server.exe process is running.

If platform tracing is enabled, you may receive error messages that resemble the following:
17:16:30| Error| System.Exception: Action Microsoft.Crm.Setup.Server.InstallDatabaseAction failed. --->
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.String.GetStringForStringBuilder(String value, Int32 startIndex, Int32 length, Int32 capacity)
at System.Text.StringBuilder.GetNewString(String currentString, Int32 requiredLength)
at System.Text.StringBuilder.Append(Char[] value, Int32 startIndex, Int32 charCount)
at System.IO.StreamReader.ReadToEnd()
at Microsoft.Crm.Setup.DiffBuilder.PopulateCaches(Boolean loadIndexes, Boolean loadPrivileges, CacheType existingMetadataCacheType)
at Microsoft.Crm.Setup.DiffBuilder.DropFKs(String metadataLocation)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Microsoft.Crm.Setup.Database.DllMethodAction.Execute()
at Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseCollection releases, Int32 currentProgress)
at Microsoft.Crm.Setup.Database.DatabaseInstaller.installInternal()
at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase)
at Microsoft.Crm.Setup.Server.InstallDatabaseAction.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
For more information about how to enable tracing in Microsoft Dynamics CRM, click the following article number to view the article in the Microsoft Knowledge Base:
907490 How to enable tracing in Microsoft Dynamics CRM

CAUSE

This problem occurs because lots of user queries are kept in memory when you upgrade from Microsoft Dynamics CRM 3.0 to Microsoft Dynamics CRM 4.0.

RESOLUTION

Update information

A setup update is available from Microsoft. When you install Microsoft Dynamics CRM 4.0, or when you upgrade to Microsoft Dynamics CRM 4.0, you can check for setup updates. If you select the option to check for setup updates, the application downloads any new setup updates and applies the setup updates to the installation while the setup process is running.

Installation information

To obtain this fix, use the Update Installation Files option during Microsoft Dynamics CRM 4.0 setup. For more information about how to use the Update Installation Files option or how to manually download the setup update, click the following article number to view the article in the Microsoft Knowledge Base:
948917 How to obtain the setup updates for Microsoft Dynamics CRM 4.0

Prerequisites

No prerequisites are required.

Removal information

The setup update cannot be removed.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 958074 - Last Review: January 7, 2009 - Revision: 1.0
APPLIES TO
  • Microsoft Dynamics CRM 4.0
Keywords: 
kbfix kbsurveynew kbmbsmigrate kbqfe kbexpertiseinter KB958074

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com