You are currently offline, waiting for your internet to reconnect

FIX: InvalidOperationException error when a multithreaded application has high throughput in the .NET Framework 4

SYMPTOMS
Consider the following scenario:
  • You run a multithread Microsoft .NET Framework 4-based application that has high throughput.
  • The application calls the System.ComponentModel.TypeDescriptor.GetProvider method.
In this scenario, a System.InvalidOperationException exception occurs, and you receive the following error message:
Hashtable insert failed. Load factor too high. The most common cause is multiple threads writing to the Hashtable simultaneously.

For example, you run an ASP.NET application or a web service, and the application or the web service calls the System.ComponentModel.TypeDescriptor.GetProvider method.

Note When this issue occurs, the call stack resembles the following: 
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at System.ComponentModel.TypeDescriptor.NodeFor(Type type, Boolean createDelegator)
at System.ComponentModel.TypeDescriptor.GetProvider(Type type)
at System.ComponentModel.DataAnnotations.AssociatedMetadataTypeTypeDescriptionProvider..ctor(Type type)
at System.Web.Mvc.ModelBinderDictionary.GetBinder(Type modelType, IModelBinder fallbackBinder)
at System.Web.Mvc.ControllerActionInvoker.GetParameterValue(ControllerContext controllerContext, ParameterDescriptor parameterDescriptor)
at System.Web.Mvc.ControllerActionInvoker.GetParameterValues(ControllerContext controllerContext, ActionDescriptor actionDescriptor)
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
at System.Web.Mvc.Controller.ExecuteCore()
at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)
at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.<BeginProcessRequest>b__5()
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0()
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
CAUSE
This issue occurs because an internal HashTable object is accessed by multiple writers of the multithread application.
RESOLUTION

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft website:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

To apply this hotfix, you must have the .NET Framework 4 installed.

Restart requirement

You have to restart the computer after you apply this hotfix if the affected files are being used. 

File information

The global version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

For all supported x86-based versions of the .NET Framework 4 for Windows Server 2003, for Windows XP, for Windows Vista, for Windows Server 2008, or for Windows 7

File nameFile versionFile sizeDateTimePlatform
System.dll4.0.30319.5083,511,11231-Aug- 201105:39x86


For all supported x64-based versions of the .NET Framework 4 for Windows Server 2003, for Windows XP, for Windows Vista, for Windows Server 2008, for Windows 7, or for Windows Server 2008 R2

File nameFile versionFile sizeDateTimePlatform
System.dll4.0.30319.5083,511,11231-Aug- 201105:39x64


For all supported IA-64–based versions of the .NET Framework 4 for Windows Server 2003, for Windows Server 2008, or for Windows Server 2008 R2

File nameFile versionFile sizeDateTimePlatform
System.dll4.0.30319.5083,511,11231-Aug- 201105:39IA-64


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

Article ID: 2576011 - Last Review: 09/28/2011 09:05:00 - Revision: 1.0

  • Microsoft .NET Framework 4
  • kbqfe kbhotfixserver kbfix kbexpertiseadvanced kbsurveynew KB2576011
Feedback