CLR Profiler Gotcha

I fired up the 64-bit version of CLR profiler on my 64-bit machine, attached to a demo Console application and got the following dialog box:

image

The problem is that the application was targeting 32-bit (x86) in Visual Studio.  Since it is a pain in the butt to target 64-bit Console apps from Visual Studio 2010 (see the trail of tears here – note that this is a feature, not a bug in VS2010 Eye rolling smile), I opened the 32-bit version of CLR profiler instead and did my analysis.

Note that you will also get the same dialog box if you run CLR Profiler as a standard user (I always wondered what  sub-standard user was…).  Make sure you run it as administrator.

Advertisements

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: