症状
使用 Microsoft.NET Framework 2.0 Service Pack 2 (SP2) 或 Microsoft.NET Framework 3.5 Service Pack 1 (SP1) 创建的 Web 应用程序运行时,您收到System.InvalidOperationException异常以及以下错误消息:
哈希表插入失败。 太负载系数 high.at System.Collections.Hashtable.Insert (对象键,对象 nvalue,布尔值添加) 在位于 System.Collections.Hashtable.set_Item (对象键的对象的值)在 System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData.GetAttributes () 的 System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetAttributes (类型)在 System.ComponentModel.TypeDescriptor.GetAttributes (类型 componentType) 的 System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes ()
原因
发生此问题是因为在应用程序中的多个线程同时调用Hashtable.Insert方法。
解决方案
修补程序替换信息
对应于 KB968432 的热修复程序已取代了该修补程序 KB981145,其中包含以前在 KB968432 中包含的所有修复程序。 应使用修补程序 KB981145 来解决 KB968432 中描述的问题。有关详细信息,请单击下面的文章编号,以查看 Microsoft 知识库中相应的文章:
981145 工作流逐渐需要更长的时间是在.NET Framework 2.0 版中重新承载工作流设计器中加载
状态
Microsoft 已确认这是在“适用范围”部分中列出的 Microsoft 产品存在的问题。