Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: An application that serializes and deserializes a generic class that has at least one static member fails on a computer that is running the .NET Framework 3.5 Service Pack 1


View products that this article applies to.

Symptoms

On a computer that is running the Microsoft .NET Framework 3.5 Service Pack 1 (SP1), you have an application that serializes and deserializes a generic class. If the generic class has at least one static member, you may encounter one of the following symptoms:
  • If the application is running as a 32-bit process, the thread that performs the deserialization may enter a loop. Therefore, the application fails, and the application consumes lots of CPU resources.
  • If the application is running as a 64-bit process, an exception is thrown, and you receive an error message that resembles the following:
    Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Note This problem occurs for a Microsoft ASP.NET application if the following conditions are true:
  • You enable View State for a control.
  • The control has a property the type of which is based on a generic class that has at least one static member.

↑ Back to the top


Cause

This problem occurs because of a regression in the .NET Framework 3.5 SP1.

↑ Back to the top


Resolution

Hotfix information

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

To download this hotfix from the MSDN Code Gallery, visit the following Microsoft Web site:


Note The MSDN Code Gallery displays the languages for which the hotfix is available. If you do not see your language listed, it is because the Code Gallery resource page is not available for that language.


Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:

Prerequisites

You must have the .NET Framework 3.5 SP1 installed to apply this hotfix.

Restart requirement

You may have to restart the computer if any of the files that are updated are being used.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English 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.
Windows 2000, Windows XP, and Windows Server 2003, x86 versions
File nameFile versionFile sizeDateTime
Mscordacwks.dll2.0.50727.3068992,26416-Sep-200813:13
Mscorlib.dll2.0.50727.30684,546,56016-Sep-200813:13
Mscorwks.dll2.0.50727.30685,815,80816-Sep-200813:13
Windows 2000, Windows XP, and Windows Server 2003, x64 versions
File nameFile versionFile sizeDateTimePlatform
Mscordacwks.dll2.0.50727.3068992,26416-Sep-200813:13x86
Mscorlib.dll2.0.50727.30684,546,56016-Sep-200813:13x86
Mscorwks.dll2.0.50727.30685,815,80816-Sep-200813:13x86
Mscordacwks.dll2.0.50727.30681,767,94416-Sep-200810:33x64
Mscorlib.dll2.0.50727.30684,562,94416-Sep-200810:33x64
Mscorwks.dll2.0.50727.306810,079,74416-Sep-200810:33x64
Windows 2000, Windows XP, and Windows Server 2003, IA-64 versions
File nameFile versionFile sizeDateTimePlatform
Mscordacwks.dll2.0.50727.3068992,26416-Sep-200813:13x86
Mscorlib.dll2.0.50727.30684,546,56016-Sep-200813:13x86
Mscorwks.dll2.0.50727.30685,815,80816-Sep-200813:13x86
Mscordacwks.dll2.0.50727.30683,087,88016-Sep-200810:44IA-64
Mscorlib.dll2.0.50727.30684,005,88816-Sep-200810:44IA-64
Mscorwks.dll2.0.50727.306820,153,85616-Sep-200810:44IA-64
Windows Vista Service Pack 1 (SP1) and Windows Server 2008, x86 versions
File nameFile versionFile sizeDateTimePlatform
Big5.nlpNot Applicable66,72818-Dec-200721:03Not Applicable
Bopomofo.nlpNot Applicable82,17218-Dec-200721:03Not Applicable
Ksc.nlpNot Applicable116,75618-Dec-200721:04Not Applicable
Mscorlib.dll2.0.50727.30684,546,56007-Oct-200822:22x86
Normidna.nlpNot Applicable59,34218-Dec-200721:05Not Applicable
Normnfc.nlpNot Applicable45,79418-Dec-200721:05Not Applicable
Normnfd.nlpNot Applicable39,28418-Dec-200721:05Not Applicable
Normnfkc.nlpNot Applicable66,38418-Dec-200721:05Not Applicable
Normnfkd.nlpNot Applicable60,29418-Dec-200721:05Not Applicable
Prc.nlpNot Applicable83,74818-Dec-200721:05Not Applicable
Prcp.nlpNot Applicable83,74818-Dec-200721:05Not Applicable
Sortkey.nlpNot Applicable262,14818-Dec-200721:05Not Applicable
Sorttbls.nlpNot Applicable20,32018-Dec-200721:05Not Applicable
Xjis.nlpNot Applicable28,28818-Dec-200721:05Not Applicable
Mscordacwks.dll2.0.50727.3068992,26407-Oct-200822:22x86
Mscorjit.dll2.0.50727.3068367,10424-Sep-200822:21x86
Mscorwks.dll2.0.50727.30685,815,80807-Oct-200822:22x86
Mscorlib.resources.dll2.0.50727.3053307,20027-Jul-200817:58x86
Windows Vista SP1 and Windows Server 2008, x64 versions
File nameFile versionFile sizeDateTimePlatform
Big5.nlpNot Applicable66,72818-Dec-200721:01Not Applicable
Bopomofo.nlpNot Applicable82,17218-Dec-200721:01Not Applicable
Ksc.nlpNot Applicable116,75618-Dec-200721:02Not Applicable
Mscorlib.dll2.0.50727.30684,562,94407-Oct-200823:04x64
Normidna.nlpNot Applicable59,34218-Dec-200721:03Not Applicable
Normnfc.nlpNot Applicable45,79418-Dec-200721:03Not Applicable
Normnfd.nlpNot Applicable39,28418-Dec-200721:03Not Applicable
Normnfkc.nlpNot Applicable66,38418-Dec-200721:03Not Applicable
Normnfkd.nlpNot Applicable60,29418-Dec-200721:03Not Applicable
Prc.nlpNot Applicable83,74818-Dec-200721:03Not Applicable
Prcp.nlpNot Applicable83,74818-Dec-200721:03Not Applicable
Sortkey.nlpNot Applicable262,14818-Dec-200721:03Not Applicable
Sorttbls.nlpNot Applicable20,32018-Dec-200721:03Not Applicable
Xjis.nlpNot Applicable28,28818-Dec-200721:03Not Applicable
Mscordacwks.dll2.0.50727.30681,767,94407-Oct-200823:04x64
Mscorjit.dll2.0.50727.30681,580,03224-Sep-200823:06x64
Mscorwks.dll2.0.50727.306810,079,74407-Oct-200823:04x64
Mscorlib.resources.dll2.0.50727.3053307,20027-Jul-200818:02x86
Big5.nlpNot Applicable66,72818-Dec-200721:03Not Applicable
Bopomofo.nlpNot Applicable82,17218-Dec-200721:03Not Applicable
Ksc.nlpNot Applicable116,75618-Dec-200721:04Not Applicable
Mscorlib.dll2.0.50727.30684,546,56007-Oct-200822:22x86
Normidna.nlpNot Applicable59,34218-Dec-200721:05Not Applicable
Normnfc.nlpNot Applicable45,79418-Dec-200721:05Not Applicable
Normnfd.nlpNot Applicable39,28418-Dec-200721:05Not Applicable
Normnfkc.nlpNot Applicable66,38418-Dec-200721:05Not Applicable
Normnfkd.nlpNot Applicable60,29418-Dec-200721:05Not Applicable
Prc.nlpNot Applicable83,74818-Dec-200721:05Not Applicable
Prcp.nlpNot Applicable83,74818-Dec-200721:05Not Applicable
Sortkey.nlpNot Applicable262,14818-Dec-200721:05Not Applicable
Sorttbls.nlpNot Applicable20,32018-Dec-200721:05Not Applicable
Xjis.nlpNot Applicable28,28818-Dec-200721:05Not Applicable
Mscordacwks.dll2.0.50727.3068992,26407-Oct-200822:22x86
Mscorjit.dll2.0.50727.3068367,10424-Sep-200822:21x86
Mscorwks.dll2.0.50727.30685,815,80807-Oct-200822:22x86
Windows Vista SP1 and Windows Server 2008, IA-64 versions
File nameFile versionFile sizeDateTimePlatform
Big5.nlpNot Applicable66,72818-Dec-200721:06Not Applicable
Bopomofo.nlpNot Applicable82,17218-Dec-200721:06Not Applicable
Ksc.nlpNot Applicable116,75618-Dec-200721:06Not Applicable
Mscorlib.dll2.0.50727.30684,005,88807-Oct-200823:12IA-64
Normidna.nlpNot Applicable59,34218-Dec-200721:08Not Applicable
Normnfc.nlpNot Applicable45,79418-Dec-200721:08Not Applicable
Normnfd.nlpNot Applicable39,28418-Dec-200721:08Not Applicable
Normnfkc.nlpNot Applicable66,38418-Dec-200721:08Not Applicable
Normnfkd.nlpNot Applicable60,29418-Dec-200721:08Not Applicable
Prc.nlpNot Applicable83,74818-Dec-200721:08Not Applicable
Prcp.nlpNot Applicable83,74818-Dec-200721:08Not Applicable
Sortkey.nlpNot Applicable262,14818-Dec-200721:08Not Applicable
Sorttbls.nlpNot Applicable20,32018-Dec-200721:08Not Applicable
Xjis.nlpNot Applicable28,28818-Dec-200721:08Not Applicable
Mscordacwks.dll2.0.50727.30683,087,88007-Oct-200823:12IA-64
Mscorjit.dll2.0.50727.30682,560,51224-Sep-200823:14IA-64
Mscorwks.dll2.0.50727.306820,153,85607-Oct-200823:12IA-64
Mscorlib.resources.dll2.0.50727.3053315,39227-Jul-200817:58x86
Big5.nlpNot Applicable66,72818-Dec-200721:03Not Applicable
Bopomofo.nlpNot Applicable82,17218-Dec-200721:03Not Applicable
Ksc.nlpNot Applicable116,75618-Dec-200721:04Not Applicable
Mscorlib.dll2.0.50727.30684,546,56007-Oct-200822:22x86
Normidna.nlpNot Applicable59,34218-Dec-200721:05Not Applicable
Normnfc.nlpNot Applicable45,79418-Dec-200721:05Not Applicable
Normnfd.nlpNot Applicable39,28418-Dec-200721:05Not Applicable
Normnfkc.nlpNot Applicable66,38418-Dec-200721:05Not Applicable
Normnfkd.nlpNot Applicable60,29418-Dec-200721:05Not Applicable
Prc.nlpNot Applicable83,74818-Dec-200721:05Not Applicable
Prcp.nlpNot Applicable83,74818-Dec-200721:05Not Applicable
Sortkey.nlpNot Applicable262,14818-Dec-200721:05Not Applicable
Sorttbls.nlpNot Applicable20,32018-Dec-200721:05Not Applicable
Xjis.nlpNot Applicable28,28818-Dec-200721:05Not Applicable
Mscordacwks.dll2.0.50727.3068992,26407-Oct-200822:22x86
Mscorjit.dll2.0.50727.3068367,10424-Sep-200822:21x86
Mscorwks.dll2.0.50727.30685,815,80807-Oct-200822:22x86

↑ Back to the top


Status

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

↑ Back to the top


References

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

↑ Back to the top


Keywords: kbhotfixdev, kbnotautohotfix, kbexpertiseadvanced, kbfix, kbqfe, kbhotfixserver, kb

↑ Back to the top

Article Info
Article ID : 957543
Revision : 1
Created on : 1/7/2017
Published on : 10/8/2011
Exists online : False
Views : 510