Microsoft KB Archive/832740

= You do not see native images when you debug a managed application after you install Windows Server 2003 Service Pack 1 =

PSS ID Number: 832740

Article Last Modified on 2/4/2004

-

The information in this article applies to:


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

-





SYMPTOMS
When you debug managed applications, you do not see the native image in the Modules window in Microsoft Visual Studio .NET 2003, and performance may also decrease when you use the debug version of applications after you install Microsoft Windows Server 2003 Service Pack 1 (SP1).



CAUSE
The debug version of native images may be deleted after you install Windows Server 2003 SP1. The Mscorlib.dll native image location changes after you install SP1.



WORKAROUND
To work around this problem, do one of the following tasks:  Run the following command from the Visual Studio .NET 2003 command prompt for all the missing .dll files:

ngen /debug .dll

Note Replace  with the file name of the actual .dll file that has gone missing. Repair the Visual Studio .NET installation.



MORE INFORMATION
The Microsoft .NET Framework version 1.1 does not generate a debuggable native image for the Mscorlib.dll library on Windows Server 2003. When Visual Studio .NET 2003 is installed together with Windows Server 2003, Visual Studio .NET 2003 generates the debuggable native image for Mscorlib.dll to make debugging easy. When Windows Server 2003 Server SP1 is installed on the same computer as Visual Studio .NET 2003, the native image that does not contain the debuggable information is regenerated only for the updated Mscorlib.dll file. The debuggable native image does not match the assembly in the version directory.

Note The version directory is %windir%\assembly\NativeImages1_v1.1.4322\ \.

When you debug a managed application, the assembly cache deletes the obsolete debuggable native image. The Modules window does not show the obsolete debuggable native image because the image does not exist.

Steps to reproduce the behavior

 * 1) Install Windows Server 2003.
 * 2) Install Visual Studio .NET 2003.
 * 3) Install Windows Server 2003 SP1.
 * 4) In Visual Studio .NET 2003, create a Managed C++ Application.
 * 5) Press F5 to start the program that is created in step 4 in Debug mode.
 * 6) Press CTRL+ALT+U to view the Modules window.

You notice that the Modules window does not show Debug information.

Keywords: kbManaged kbDebug kbprb KB832740

Technology: kbAudDeveloper kbEIF kbVSNET2003Ac kbVSNET2003EntArc kbVSNET2003EntDev kbVSNET2003Pro kbVSNET2003Search kbVSNET2003Trial kbVSNETSearch kbVSsearch

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.