.NET applications may run out of memory when you run the applications in Visual Studio .NET 2003 (884190)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2003), Professional Edition
  • Microsoft Visual Studio .NET (2003), Academic Edition

SYMPTOMS

When you run a Microsoft .NET application in Microsoft Visual Studio .NET 2003, the .NET application may run out of memory.

CAUSE

This problem occurs because the base load address for some Microsoft .NET Framework DLLs is in a location that does not have sufficient memory to run the DLLs.

RESOLUTION

To resolve the problem, use the Rebase utility to rebase the following DLLs to the preferred base addresses:
  • Diasymreader.dll
  • Cscompmgd.dll
  • Microsoft.visualbasic.dll
  • Microsoft.jscript.dll
  • Microsoft.vsa.dll
To rebase unmanaged DLLs, including the Diasymreader.dll file, run the following command at a command prompt:
editbin /rebase:base=0x5DA10000 diasymreader.dll
To rebase managed DLLs, including the Cscompmgd.dll file, the Microsoft.visualbasic.dll file, the Microsoft.jscript.dll file, and the Microsoft.vsa.dll file, follow these steps for each file:
  1. Remove the DLL from the global assembly cache folder. To do this, run the following command at a command prompt:
    gacutil /u path/DLLName
  2. Rebase the DLL. To do this, run the following command at a command prompt:
    rebase -b	BaseAddressDLLName
  3. Install the DLL in the global assembly cache folder. To do this, run the following command at a command prompt:
    gacutil /i path/DLLName
The following table includes the DLLs and the preferred base addresses. Rebase these DLLs to the preferred base addresses.
File NamePreferred Base Address
Cscompmgd0x5DA00000
Diasymreader0x5DA10000
Microsoft.visualbasic0x5DAA0000
Microsoft.jscript0x5DB40000
Microsoft.vsa0x5DB30000

STATUS

This behavior is by design.

REFERENCES

For more information, visit the following Microsoft Developer Network (MSDN) Web sites: For more information, click the following article number to view the article in the Microsoft Knowledge Base:

821157 FIX: "Server Application Unavailable" error message if a DLL is loaded in the 0x33A20000 address space and you request an ASP.NET page


Modification Type:MajorLast Reviewed:7/24/2006
Keywords:kbprb kbMemory kbDLL kbtshoot KB884190 kbAudDeveloper