Referenced assemblies of a .NET Framework 2.0-based 32-bit application are loaded multiple times

Article translations Article translations
Article ID: 981266 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

You run a Microsoft .NET Framework 2.0-based 32-bit application that references assemblies. However, these referenced assemblies are loaded multiple times into a virtual address space unexpectedly. This issue occurs even when you run the application in a single application domain.

Note You can use the VMMAP tool to inspect the virtual address space that the application uses.

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 software update 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 Web site:
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

You must have the Microsoft .NET Framework 2.0 Service Pack 2 (SP2) installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply the hotfix if affected files are not being used.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

Post-installation information

After you install the hotfix, enable the DisableDoubleMapping property in the application configuration file. This behavior prevents referenced assemblies from being loaded multiple times into a virtual address space. The following sample code shows how to enable the DisableDoubleMapping property in the application configuration file:
<?xml version="1.0" encoding="utf-8" ?>
    <configuration> 
        <runtime>
            <DisableDoubleMapping enabled="true" />
        </runtime>
    </configuration>

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.
For all supported x86-based versions of Windows Server 2003 and of Windows XP
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Mscordacwks.dll2.0.50727.4448989,01609-Apr-201005:13x86
Mscorlib.dll2.0.50727.44484,550,65609-Apr-201005:13x86
Mscorwks.dll2.0.50727.44485,819,72809-Apr-201005:13x86
Sos.dll2.0.50727.4448388,93609-Apr-201005:13x86
For all supported x64-based versions of Windows Server 2003 and of Windows XP
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Mscordacwks.dll2.0.50727.44481,758,55208-Apr-201023:35x64
Mscorlib.dll2.0.50727.44484,567,04008-Apr-201023:29x64
Mscorwks.dll2.0.50727.444810,053,96808-Apr-201023:33x64
Sos.dll2.0.50727.4448485,19208-Apr-201023:30x64
For all supported IA-64-based versions of Windows Server 2003 and of Windows XP
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Mscordacwks.dll2.0.50727.44483,085,14409-Apr-201000:04IA-64
Mscorlib.dll2.0.50727.44484,009,98409-Apr-201000:02IA-64
Mscorwks.dll2.0.50727.444820,176,20808-Apr-201023:59IA-64
Sos.dll2.0.50727.4448872,77609-Apr-201000:01IA-64
For all supported x86-based versions of Windows 7
Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Mscorlib.dll2.0.50727.50164,550,65613-May-201016:26
Mscordacwks.dll2.0.50727.5016995,67213-May-201016:26
Mscorwks.dll2.0.50727.50165,822,80013-May-201016:26
Sos.dll2.0.50727.5016388,93613-May-201016:26
For all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Mscorlib.dll2.0.50727.50164,567,04013-May-201016:26
Mscordacwks.dll2.0.50727.50161,757,52813-May-201016:26
Mscorwks.dll2.0.50727.501610,044,75213-May-201016:26
Sos.dll2.0.50727.5016485,19213-May-201016:27
For all supported IA-64-based versions of Windows Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Mscorlib.dll2.0.50727.50164,009,98413-May-201016:28
Mscordacwks.dll2.0.50727.50163,086,16813-May-201016:28
Mscorwks.dll2.0.50727.501620,187,47213-May-201016:28
Sos.dll2.0.50727.5016872,77613-May-201016:28

WORKAROUND

To work around this issue, use one of the following methods.

Method 1

Upgrade the application to a Microsoft .NET Framework 4.0 application. This problem is fixed in the .NET Framework 4.0.

Method 2

Run the application on a 64-bit operating system. 64-bit operating systems have a large virtual address space.

Method 3

Add all referenced assemblies of the application to the Global Assembly Cache (GAC). Use the Native Image Generator (Ngen.exe) to install the assemblies in the native image cache.

STATUS

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

MORE INFORMATION

For more information about the VMMAP tool and about the download location of the VMMAP tool, visit the following Microsoft TechNet Web site:
VMMap v2.62

Properties

Article ID: 981266 - Last Review: June 12, 2010 - Revision: 3.0
APPLIES TO
  • Microsoft .NET Framework 2.0 Service Pack 2
Keywords: 
kbHotfixServer kbexpertiseadvanced kbsurveynew kbqfe KB981266

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com