Microsoft KB Archive/257382

= PRB: Visual Studio Analyzer Does Not Collect Performance Monitor Events =

Article ID: 257382

Article Last Modified on 10/20/2003

-

APPLIES TO


 * Microsoft Visual Studio 6.0 Enterprise Edition, when used with:
 * Microsoft Windows 2000 Standard Edition

-



This article was previously published under Q257382



SYMPTOMS
When you are using Visual Studio Analyzer 6.0 on Windows 2000, you cannot collect Performance Monitor events.



CAUSE
The Performance Monitor data on Windows 2000 is only available to interactive users and administrators. The user that the Visual Studio Analyzer server runs as does not have the necessary privileges to access the Performance Monitor data.



RESOLUTION
To resolve this problem, you can give permission to the user that Visual Studio Analyzer server runs as so it can access the Performance Monitor data.

You can use this procedure to find out the name of the Visual Studio Analyzer user:
 * 1) Run the Distributed COM Configuration file (Dcomcnfg.exe).
 * 2) On the Applications tab, select MSVSA Local Event Concentrator Class, and click Properties.
 * 3) On the Identity tab, note the user name in the This User edit box.

You can follow these steps to grant the Visual Studio Analyzer user access to the Performance Monitor data:
 * 1) Start the registry editor, Regedt32.exe.
 * 2) Select HKEY_LOCAL_MACHINE on Local Machine from the Window menu.
 * 3) Navigate to the HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Perflib key.
 * 4) From the Security menu, select Permissions.
 * 5) Click Add and select the Visual Studio Analyzer user that you identified in the previous steps.
 * 6) Close the registry editor and reboot the computer.



STATUS
This behavior is by design.

