FIX: System.InvalidOperationException when an application calls the CultureInfo.GetCultures method in the .NET Framework 2.0

Applies To
.NET Framework 3.5 Service Pack 1

Symptoms

When you run a Microsoft .NET Framework 2.0-based application that calls the System.Globalization.CultureInfo.GetCultures method, a System.InvalidOperationException exception may be generated, and the application crashes. Additionally, you receive the following error message in this situation: 

Note

Hashtable insert failed. Load factor too high.

      

Cause

This issue occurs because of a race condition in a hash table.

Note When the CultureInfo.GetCultures method is called, a CultureTable object uses the hash table.

Resolution

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem immediately, 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:

http:⁠//support.microsoft.com/contactus/?ws=support 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 Microsoft .NET Framework 3.5.1 installed on one of the following operating systems:

  • Windows 7 Service Pack 1 (SP1)
  • Windows Server 2008 R2 Service Pack 1 (SP1)

Note The .NET Framework 3.5.1 feature includes the .NET Framework 2.0 Service Pack 2 (SP2).

Restart requirement

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

We recommend that you exit all .NET Framework applications before you install this hotfix.

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 Windows 7 SP1

File name File version File size Date Time Platform
Big5.nlp Not Applicable 66,728 12-Nov-2010 23:43 Not Applicable
Bopomofo.nlp Not Applicable 82,172 12-Nov-2010 23:43 Not Applicable
Ksc.nlp Not Applicable 116,756 12-Nov- 2010 23:45 Not Applicable
Mscorlib.dll 2.0.50727.5691 4,550,656 26-Aug-2011 22:33 x86
Normidna.nlp Not Applicable 59,342 12-Nov-2010 23:45 Not Applicable
Normnfc.nlp Not Applicable 45,794 12-Nov-2010 23:45 Not Applicable
Normnfd.nlp Not Applicable 39,284 12-Nov-2010 23:45 Not Applicable
Normnfkc.nlp Not Applicable 66,384 12-Nov- 2010 23:45 Not Applicable
Normnfkd.nlp Not Applicable 60,294 12-Nov-2010 23:45 Not Applicable
Prc.nlp Not Applicable 83,748 12-Nov-2010 23:45 Not Applicable
Prcp.nlp Not Applicable 83,748 12-Nov-2010 23:45 Not Applicable
Sortkey.nlp Not Applicable 262,148 12-Nov-2010 23:45 Not Applicable
Sorttbls.nlp Not Applicable 20,320 12-Nov- 2010 23:45 Not Applicable
Xjis.nlp Not Applicable 28,288 12-Nov-2010 23:45 Not Applicable
Mscordacwks.dll 2.0.50727.5691 989,528 26-Aug-2011 22:33 x86
Mscorwks.dll 2.0.50727.5691 5,924,176 26-Aug- 2011 22:33 x86
Sos.dll 2.0.50727.5691 388,936 26-Aug-2011 22:33 x86

For all supported x64-based versions of Windows 7 SP1 and of Windows Server 2008 R2 SP1

File name File version File size Date Time Platform
Big5.nlp Not Applicable 66,728 12-Nov-2010 23:43 Not Applicable
Bopomofo.nlp Not Applicable 82,172 12-Nov-2010 23:43 Not Applicable
Ksc.nlp Not Applicable 116,756 12-Nov- 2010 23:44 Not Applicable
Mscorlib.dll 2.0.50727.5691 4,567,040 26-Aug-2011 22:29 x64
Normidna.nlp Not Applicable 59,342 12-Nov-2010 23:44 Not Applicable
Normnfc.nlp Not Applicable 45,794 12-Nov-2010 23:44 Not Applicable
Normnfd.nlp Not Applicable 39,284 12-Nov-2010 23:44 Not Applicable
Normnfkc.nlp Not Applicable 66,384 12-Nov- 2010 23:44 Not Applicable
Normnfkd.nlp Not Applicable 60,294 12-Nov-2010 23:44 Not Applicable
Prc.nlp Not Applicable 83,748 12-Nov-2010 23:44 Not Applicable
Prcp.nlp Not Applicable 83,748 12-Nov-2010 23:44 Not Applicable
Sortkey.nlp Not Applicable 262,148 12-Nov-2010 23:44 Not Applicable
Sorttbls.nlp Not Applicable 20,320 12-Nov- 2010 23:44 Not Applicable
Xjis.nlp Not Applicable 28,288 12-Nov-2010 23:44 Not Applicable
Mscordacwks.dll 2.0.50727.5691 1,755,480 26-Aug-2011 22:29 x64
Mscorwks.dll 2.0.50727.5691 9,990,992 26-Aug- 2011 22:29 x64
Sos.dll 2.0.50727.5691 485,192 26-Aug-2011 22:29 x64

For all supported IA-64–based versions of Windows Server 2008 R2 SP1

File name File version File size Date Time Platform
Big5.nlp Not Applicable 66,728 12-Nov-2010 23:45 Not Applicable
Bopomofo.nlp Not Applicable 82,172 12-Nov-2010 23:45 Not Applicable
Ksc.nlp Not Applicable 116,756 12-Nov- 2010 23:45 Not Applicable
Mscorlib.dll 2.0.50727.5691 4,009,984 26-Aug-2011 22:22 IA-64
Normidna.nlp Not Applicable 59,342 12-Nov-2010 23:45 Not Applicable
Normnfc.nlp Not Applicable 45,794 12-Nov-2010 23:45 Not Applicable
Normnfd.nlp Not Applicable 39,284 12-Nov-2010 23:45 Not Applicable
Normnfkc.nlp Not Applicable 66,384 12-Nov- 2010 23:45 Not Applicable
Normnfkd.nlp Not Applicable 60,294 12-Nov-2010 23:45 Not Applicable
Prc.nlp Not Applicable 83,748 12-Nov-2010 23:45 Not Applicable
Prcp.nlp Not Applicable 83,748 12-Nov-2010 23:45 Not Applicable
Sortkey.nlp Not Applicable 262,148 12-Nov-2010 23:45 Not Applicable
Sorttbls.nlp Not Applicable 20,320 12-Nov- 2010 23:45 Not Applicable
Xjis.nlp Not Applicable 28,288 12-Nov-2010 23:46 Not Applicable
Mscordacwks.dll 2.0.50727.5691 3,082,584 26-Aug-2011 22:22 IA-64
Mscorwks.dll 2.0.50727.5691 20,342,096 26-Aug- 2011 22:22 IA-64
Sos.dll 2.0.50727.5691 872,776 26-Aug-2011 22:22 IA-64

Additional files for all supported x86-based versions of Windows 7 SP1

File name X86_mscorlib_b77a5c561934e089_6.1.7601.21802_none_8544678d97a6df07.manifest
File version Not Applicable
File size 331,675
Date (UTC) 27-Aug-2011
Time (UTC) 06:17
File name X86_netfx-mscordacwks_b03f5f7f11d50a3a_6.1.7601.21802_none_e8af5961dd2f4f5f.manifest
File version Not Applicable
File size 2,730
Date (UTC) 27-Aug- 2011
Time (UTC) 06:12
File name X86_netfx- mscorwks_dll_b03f5f7f11d50a3a_6.1.7601.21802_none_efeb367b052e438c.manifest
File version Not Applicable
File size 6,923
Date (UTC) 27-Aug-2011
Time (UTC) 06:16
File name X86_netfx-sos_dll_b03f5f7f11d50a3a_6.1.7601.21802_none_d17da122d1242b74.manifest
File version Not Applicable
File size 2,006
Date (UTC) 27-Aug-2011
Time (UTC) 06:11

Additional files for all supported x64-based versions of Windows 7 SP1 and of Windows Server 2008 R2 SP1

File name Amd64_mscorlib_b77a5c561934e089_6.1.7601.21802_none_3d9730b6832ab601.manifest
File version Not Applicable
File size 368,857
Date (UTC) 27-Aug-2011
Time (UTC) 07:10
File name Amd64_netfx-mscordacwks_b03f5f7f11d50a3a_6.1.7601.21802_none_a102228ac8b32659.manifest
File version Not Applicable
File size 2,738
Date (UTC) 27-Aug- 2011
Time (UTC) 07:01
File name Amd64_netfx- mscorwks_dll_b03f5f7f11d50a3a_6.1.7601.21802_none_a83dffa3f0b21a86.manifest
File version Not Applicable
File size 6,927
Date (UTC) 27-Aug-2011
Time (UTC) 07:08
File name Amd64_netfx-sos_dll_b03f5f7f11d50a3a_6.1.7601.21802_none_89d06a4bbca8026e.manifest
File version Not Applicable
File size 2,010
Date (UTC) 27-Aug-2011
Time (UTC) 06:59

Additional files for all supported IA-64–based versions of Windows Server 2008 R2 SP1

File name Ia64_mscorlib_b77a5c561934e089_6.1.7601.21802_none_8544454f97a716eb.manifest
File version Not Applicable
File size 368,856
Date (UTC) 27-Aug-2011
Time (UTC) 06:59
File name Ia64_netfx-mscordacwks_b03f5f7f11d50a3a_6.1.7601.21802_none_e8af3723dd2f8743.manifest
File version Not Applicable
File size 2,737
Date (UTC) 27-Aug- 2011
Time (UTC) 06:55
File name Ia64_netfx- mscorwks_dll_b03f5f7f11d50a3a_6.1.7601.21802_none_efeb143d052e7b70.manifest
File version Not Applicable
File size 6,926
Date (UTC) 27-Aug-2011
Time (UTC) 06:58
File name Ia64_netfx-sos_dll_b03f5f7f11d50a3a_6.1.7601.21802_none_d17d7ee4d1246358.manifest
File version Not Applicable
File size 2,009
Date (UTC) 27-Aug-2011
Time (UTC) 06:54

                  

Status

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

More Information

Call stack information

            
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at System.Globalization.CultureTable.GetDataItemFromCultureName(String name, Int32& culture, String& actualName)
at System.Globalization.CultureTableRecord..ctor(String cultureName, Boolean useUserOverride)
at System.Globalization.CultureTableRecord.GetCultureTableRecord(String name, Boolean useUserOverride)
at System.Globalization.CultureTableRecord.GetCultureTableRecord(Int32 cultureId, Boolean useUserOverride)
at System.Globalization.CultureInfo..ctor(Int32 culture, Boolean useUserOverride)
at System.Globalization.CultureTable.GetCultures(CultureTypes types)
at Microsoft.Exchange.Data.Globalization.CultureCharsetDatabase.LoadGlobalizationData(String defaultCultureName)
at Microsoft.Exchange.Data.Globalization.CultureCharsetDatabase..cctor()
--- End of inner exception stack trace ---
at Microsoft.Exchange.Configuration.Tasks.Task.ProcessRecord()
at Microsoft.Exchange.Data.Storage.BodyReadDelegates.CreateReader(ICoreItem coreItem, BodyReadConfiguration configuration, Stream bodyStream, ConversionCallbackBase& provider)
at Microsoft.Exchange.Data.Storage.BodyTextReader..ctor(ICoreItem coreItem, BodyReadConfiguration configuration, Stream inputStream)
at Microsoft.Exchange.Data.Storage.Body.OpenTextReader(BodyReadConfiguration configuration)
at Microsoft.Exchange.Monitoring.TestConnectivityCredentialsManager.LoadAutomatedTestCasConnectivityInfo(Item item, ExchangePrincipal exchangePrincipal, NetworkCredential credentials, ExDateTime& lastPasswordReset)
at Microsoft.Exchange.Monitoring.TestConnectivityCredentialsManager.LoadAutomatedTestCasConnectivityInfo(ExchangePrincipal exchangePrincipal, NetworkCredential credentials, ExDateTime& lastPasswordReset)
at Microsoft.Exchange.Monitoring.TestCasConnectivity.LoadAutomatedCredentials(TestCasConnectivityRunInstance instance)
at Microsoft.Exchange.Monitoring.TestCasConnectivity.BuildRunInstanceForSiteMBox(String deviceId)
at Microsoft.Exchange.Monitoring.TestCasConnectivity.BuildRunInstances()
at Microsoft.Exchange.Monitoring.TestCasConnectivity.InternalProcessRecord()
at Microsoft.Exchange.Configuration.Tasks.Task.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()