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.

On a Windows Server 2003-based or Windows Server 2008-based client computer, the system does not delete a temporary file that is created when an application calls the "CryptQueryObject" function


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You have a client computer that is running Microsoft Windows Server 2003 or Microsoft Windows Server 2008.
  • On this computer, you use an application that calls the CryptQueryObject function to decode an embedded PKCS7 certificate.
In this scenario, a temporary file of 0 bytes is created in the %windir%\Temp folder. This temporary file is not deleted when the CryptQueryObject function finishes its task. Additionally, when the number of temporary files reaches about 65,000, the call to the CryptQueryObject function takes longer than expected to finish.

Note %windir% represents the path of the Windows system folder. Typically, this path is C:\Windows.

↑ 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 the problem described in this article. 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.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

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: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must be running Windows Server 2003 or Windows Server 2008.

Restart requirement

You must restart your computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The English (United States) version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.
Windows Server 2003 file information notes
  • In addition to the files that are listed in these tables, this hotfix also installs an associated security catalog file (KB931908.cat) that is signed with a Microsoft digital signature.
For all supported x86-based versions of Windows Server 2003
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Crypt32.dll5.131.3790.2877595,96808-Feb-200702:39x86SP1SP1QFE
Crypt32.dll5.131.3790.4018595,45608-Feb-200702:31x86SP2SP2QFE
Updspapi.dll6.3.4.1379,18427-Dec-200607:40x86NoneNot applicable
For all supported x64-based versions of Windows Server 2003
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Crypt32.dll5.131.3790.28771,430,01607-Feb-200714:11x64SP1SP1QFE
Wcrypt32.dll5.131.3790.2877595,96807-Feb-200714:11x86SP1WOW
Crypt32.dll5.131.3790.40181,429,50407-Feb-200714:15x64SP2SP2QFE
Wcrypt32.dll5.131.3790.4018595,45607-Feb-200714:15x86SP2WOW
Updspapi.dll6.3.4.1462,12807-Feb-200714:19x64NoneNot applicable
For all supported IA-64-based versions of Windows Server 2003
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Crypt32.dll5.131.3790.28771,757,18407-Feb-200714:11IA-64SP1SP1QFE
Wcrypt32.dll5.131.3790.2877595,96807-Feb-200714:11x86SP1WOW
Crypt32.dll5.131.3790.40181,756,67207-Feb-200714:17IA-64SP2SP2QFE
Wcrypt32.dll5.131.3790.4018595,45607-Feb-200714:17x86SP2WOW
Updspapi.dll6.3.4.1655,15207-Feb-200714:19IA-64NoneNot applicable
Windows Server 2008 file information notes
Important Windows Vista hotfixes and Windows Server 2008 hotfixes are included in the same packages. However, only "Windows Vista" is listed on the Hotfix Request page. To request the hotfix package that applies to one or both operating systems, select the hotfix that is listed under "Windows Vista" on the page. Always refer to the "Applies To" section in articles to determine the actual operating system that each hotfix applies to.
  • The files that apply to a specific product, SR_Level (RTM, SPn), and service branch (LDR, GDR) can be identified by examining the file version numbers as shown in the following table.
    VersionProductSR_LevelService branch
    6.0.600 1 . 22xxxWindows Server 2008SP1LDR
    6.0.600 2 . 22xxxWindows Server 2008SP2LDR
  • Service Pack 1 is integrated into the release version of Windows Server 2008.
  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately in the "Additional file information for Windows Server 2008" section. MUM files and MANIFEST files, and the associated security catalog (.cat) files, are extremely important to maintain the state of the updated components. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.
For all supported x86-based versions of Windows Server 2008
File nameFile versionFile sizeDateTimePlatform
Crypt32.dll6.0.6001.22677978,43223-Apr-201015:43x86
Crypt32.dll6.0.6002.22391978,94424-Apr-201014:35x86
For all supported x64-based versions of Windows Server 2008
File nameFile versionFile sizeDateTimePlatform
Crypt32.dll6.0.6001.226771,255,93623-Apr-201016:08x64
Crypt32.dll6.0.6002.223911,259,00826-Apr-201006:03x64
Crypt32.dll6.0.6001.22677978,43223-Apr-201015:43x86
Crypt32.dll6.0.6002.22391978,94424-Apr-201014:35x86
For all supported IA-64-based versions of Windows Server 2008
File nameFile versionFile sizeDateTimePlatform
Crypt32.dll6.0.6001.226772,373,63223-Apr-201015:39IA-64
Crypt32.dll6.0.6002.223912,373,63226-Apr-201005:55IA-64
Crypt32.dll6.0.6001.22677978,43223-Apr-201015:43x86
Crypt32.dll6.0.6002.22391978,94424-Apr-201014:35x86

↑ Back to the top


Workaround

Workaround for Windows Server 2003

To work around this problem, manually delete the temporary files before the number of temporary files reaches 65,000.

Workaround for Windows Server 2008

To work around this problem, manually delete the temporary files before the number of temporary files reaches 65,000.

↑ 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


More information

This problem is more apparent when the CryptQueryObject function is called either directly or indirectly from a server application through some intermediate layer. When the number of temporary files reaches 65,000, client computers experience significant delays. A known indirect caller of the CryptQueryObject function is the constructor of the System.Security.Cryptography.X509Certificates.X509Certificate2 managed class.

Technical support for x64-based versions of Microsoft Windows

If your hardware came with a Microsoft Windows x64 edition already installed, your hardware manufacturer provides technical support and assistance for the Windows x64 edition. In this case, your hardware manufacturer provides support because a Windows x64 edition was included with your hardware. Your hardware manufacturer might have customized the Windows x64 edition installation by using unique components. Unique components might include specific device drivers or might include optional settings to maximize the performance of the hardware. Microsoft will provide reasonable-effort assistance if you need technical help with a Windows x64 edition. However, you might have to contact your manufacturer directly. Your manufacturer is best qualified to support the software that your manufacturer installed on the hardware. If you purchased a Windows x64 edition such as a Microsoft Windows Server 2003 x64 edition separately, contact Microsoft for technical support.

For product information about x64-based versions of Microsoft Windows Server 2003, visit the following Microsoft Web site: For more information, 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

Additional file information

Additional file information for Windows Server 2008

Additional files for all supported x86-based versions of Windows Server 2008
File nameUpdate.mum
File versionNot Applicable
File size3,565
Date (UTC)27-Apr-2010
Time (UTC)06:44
PlatformNot Applicable
File nameX86_14cbe7b8d5d19878d3800a01b240e442_31bf3856ad364e35_6.0.6001.22677_none_748c26852e1bf444.manifest
File versionNot Applicable
File size699
Date (UTC)27-Apr-2010
Time (UTC)06:44
PlatformNot Applicable
File nameX86_d45a5fb6b6e6de599c4d1fec6c1fc015_31bf3856ad364e35_6.0.6002.22391_none_2206b9a6d0026aed.manifest
File versionNot Applicable
File size699
Date (UTC)27-Apr-2010
Time (UTC)06:44
PlatformNot Applicable
File nameX86_microsoft-windows-crypt32-dll_31bf3856ad364e35_6.0.6001.22677_none_5bb4bab6f723cd5f.manifest
File versionNot Applicable
File size7,228
Date (UTC)23-Apr-2010
Time (UTC)18:03
PlatformNot Applicable
File nameX86_microsoft-windows-crypt32-dll_31bf3856ad364e35_6.0.6002.22391_none_5d7f8b0af45fc25b.manifest
File versionNot Applicable
File size7,228
Date (UTC)26-Apr-2010
Time (UTC)16:41
PlatformNot Applicable
Additional files for all supported x64-based versions of Windows Server 2008
File nameAmd64_014ce37c3935d8efbb73f36f92731238_31bf3856ad364e35_6.0.6002.22391_none_94a0add525e9b46b.manifest
File versionNot Applicable
File size1,046
Date (UTC)27-Apr-2010
Time (UTC)06:44
PlatformNot Applicable
File nameAmd64_33bbad1d2a7d4844d6f575257dfc0094_31bf3856ad364e35_6.0.6001.22677_none_db8f79bd77cc861d.manifest
File versionNot Applicable
File size1,046
Date (UTC)27-Apr-2010
Time (UTC)06:44
PlatformNot Applicable
File nameAmd64_ad5ccacfffd45df0fab1b88077c58e65_31bf3856ad364e35_6.0.6001.22677_none_20773fc938bb8055.manifest
File versionNot Applicable
File size703
Date (UTC)27-Apr-2010
Time (UTC)06:44
PlatformNot Applicable
File nameAmd64_microsoft-windows-crypt32-dll_31bf3856ad364e35_6.0.6001.22677_none_b7d3563aaf813e95.manifest
File versionNot Applicable
File size7,258
Date (UTC)23-Apr-2010
Time (UTC)18:29
PlatformNot Applicable
File nameAmd64_microsoft-windows-crypt32-dll_31bf3856ad364e35_6.0.6002.22391_none_b99e268eacbd3391.manifest
File versionNot Applicable
File size7,258
Date (UTC)27-Apr-2010
Time (UTC)04:48
PlatformNot Applicable
File nameUpdate.mum
File versionNot Applicable
File size3,593
Date (UTC)27-Apr-2010
Time (UTC)06:44
PlatformNot Applicable
File nameX86_microsoft-windows-crypt32-dll_31bf3856ad364e35_6.0.6001.22677_none_5bb4bab6f723cd5f.manifest
File versionNot Applicable
File size7,228
Date (UTC)23-Apr-2010
Time (UTC)18:03
PlatformNot Applicable
File nameX86_microsoft-windows-crypt32-dll_31bf3856ad364e35_6.0.6002.22391_none_5d7f8b0af45fc25b.manifest
File versionNot Applicable
File size7,228
Date (UTC)26-Apr-2010
Time (UTC)16:41
PlatformNot Applicable
Additional files for all supported IA-64-based versions of Windows Server 2008
File nameIa64_a8a53a3fa7aa7ff3f667b3031107c5aa_31bf3856ad364e35_6.0.6001.22677_none_b89aad1043835796.manifest
File versionNot Applicable
File size1,044
Date (UTC)27-Apr-2010
Time (UTC)06:44
PlatformNot Applicable
File nameIa64_c86784b257b2c3ce9284631d050bf015_31bf3856ad364e35_6.0.6001.22677_none_30c97f8a22116f7c.manifest
File versionNot Applicable
File size701
Date (UTC)27-Apr-2010
Time (UTC)06:44
PlatformNot Applicable
File nameIa64_f6dc2ee73e9cef06a23e3c21cddcb81f_31bf3856ad364e35_6.0.6002.22391_none_25d591179ff41818.manifest
File versionNot Applicable
File size1,044
Date (UTC)27-Apr-2010
Time (UTC)06:44
PlatformNot Applicable
File nameIa64_microsoft-windows-crypt32-dll_31bf3856ad364e35_6.0.6001.22677_none_5bb65eacf721d65b.manifest
File versionNot Applicable
File size7,243
Date (UTC)23-Apr-2010
Time (UTC)17:45
PlatformNot Applicable
File nameIa64_microsoft-windows-crypt32-dll_31bf3856ad364e35_6.0.6002.22391_none_5d812f00f45dcb57.manifest
File versionNot Applicable
File size7,243
Date (UTC)27-Apr-2010
Time (UTC)05:22
PlatformNot Applicable
File nameUpdate.mum
File versionNot Applicable
File size2,748
Date (UTC)27-Apr-2010
Time (UTC)06:44
PlatformNot Applicable
File nameX86_microsoft-windows-crypt32-dll_31bf3856ad364e35_6.0.6001.22677_none_5bb4bab6f723cd5f.manifest
File versionNot Applicable
File size7,228
Date (UTC)23-Apr-2010
Time (UTC)18:03
PlatformNot Applicable
File nameX86_microsoft-windows-crypt32-dll_31bf3856ad364e35_6.0.6002.22391_none_5d7f8b0af45fc25b.manifest
File versionNot Applicable
File size7,228
Date (UTC)26-Apr-2010
Time (UTC)16:41
PlatformNot Applicable

↑ Back to the top


Keywords: kbqfe, kbautohotfix, kbexpertiseadvanced, kbbug, kbfix, kbHotfixServer, KB931908

↑ Back to the top

Article Info
Article ID : 931908
Revision : 3
Created on : 10/8/2011
Published on : 10/8/2011
Exists online : False
Views : 936