FIX: A System.InvalidOperationException exception occurs when you run a Web application that is based in the .NET Framework 2.0 SP2 or in the .NET Framework 3.5 SP1

Applies to: .NET Framework 3.5 Service Pack 1


When you run a Web application that you created by using the Microsoft .NET Framework 2.0 Service Pack 2 (SP2) or the Microsoft .NET Framework 3.5 Service Pack 1 (SP1), you receive a System.InvalidOperationException exception together with the following error message:
Hashtable insert failed. Load factor too high.

at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at System.Collections.Hashtable.set_Item(Object key, Object value) 
at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetAttributes(Type type)

at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData.GetAttributes()

at System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes()

at System.ComponentModel.TypeDescriptor.GetAttributes(Type componentType)


This problem occurs because multiple threads in the application call the Hashtable.Insert method at the same time.


Hotfix Replacement Information

The hotfix that corresponds to KB968432 has been superseded with the hotfix KB981145, which contains all fixes that were previously included in KB968432. You should use the hotfix KB981145 to fix the issues described in KB968432. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
981145 Workflows gradually take longer to load in a workflow designer that is re-hosted in the .NET Framework 2.0


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