Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to start VS2012 Profiler

I'm trying to start a performance profiling session in Visual Studio 2012 RTM on Windows 8 PRO 64-bit for a console program (ANALYZE / Start Performance Analysis).

I get a popup message informing me

Could not load file or assembly 'Microsoft.VisualStudio.PerformanceTools.CounterInfo.dll' or one of its dependencies. The Specified module could not be found.

Apparently this can happen under VS2010 after KB2645410 is installed. I carefully followed the procedure given for this issue with the same error message:

Visual Studio 2010 SP1, KB2645410 and Add-Ins

However, that does not resolve the issue.

I have tried running VS2012 as Administrator as well.

How can I get the profiler working?

UPDATE

I can actually attach to a running instance of the project from the command line using the steps here:

Walkthrough: Command-Line Profiling Using Sampling

However, Visual Studio does not open the resulting .vspx file (it just does nothing after I open it with File / Open File).

UPDATE 2

Fuslogvw reports two binding errors when I attempt to start the profiler:

VS 2012 Profiler Binding Errors - Pastebin

like image 385
Eric J. Avatar asked Oct 26 '12 05:10

Eric J.


1 Answers

Adding the following to the system path resolved the issue for me permanently.

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Team Tools\Performance Tools

Some other answers may be appropriate to other situations.

Note that you probably will need to run Visual Studio as Administrator for profiling to work correctly.

like image 141
Eric J. Avatar answered Oct 14 '22 13:10

Eric J.