Cyberiafreak

"Fortunate are those who take the first steps.” ― Paulo Coelho

What is DisableDoubleMapping ?

Seems like .NET 2.0-based 32-bit application are loaded multiple times though in same app domain.

These ref assemblies are loaded multiple times into virtual address space unexpectedly and occupies the memory.

To resolve this, add this element as below. But I don’t see any MSDN article elaborating on this except this support link.

Note: This works for .NET 2.0 env only think so.. I don’t see this element in latest verisons/articles.

<?xml version="1.0" encoding="utf-8" ?>
    <configuration> 
        <runtime>
            <DisableDoubleMapping enabled="true" />
        </runtime>
    </configuration>

Some of the useful <runtime> Element in APP.Config.

<configuration>
   <runtime>
      <gcConcurrent enabled="true"/>
      <legacyUnhandledExceptionPolicy enabled="1"/>
   </runtime>
</configuration>
------------
<configuration>
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <dependentAssembly>
            <assemblyIdentity name="myAssembly"
                              publicKeyToken="32ab4ba45e0a69a1"
                              culture="neutral" />
             <bindingRedirect oldVersion="1.0.0.0"
                              newVersion="2.0.0.0"/>
         </dependentAssembly>
      </assemblyBinding>
   </runtime>
</configuration>
Advertisements

September 11, 2013 - Posted by | Uncategorized

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: