dotTrace 3.1 64-bit disabled inside Visual Studio 2008

I work on a web application and I use dotTrace when some profiling is needed. The problem is that I cannot fire off doTrace directly from inside Visual Studio 2008 because the commands and toolbar icons to launch it are permanently disabled. Well, not anymore.

Background

The web application I work on is a 64-bit application. I use a 64-bit version of Windows (namely, Win2008 x64). I installed the 64-bit version of dotTrace 3.1 and it does work stand-alone but it never worked integrated with VS 2008, which is a shame because it contains some neat features like it's enabling the ReSharper test runner to run the chosen test(s) directly under dotTrace profiling. The screen shot below shows how it should look like but on my box these dotTrace commands were simply disabled.

The fix

After much disappointment with the missing features, my fellow Devlicio.us blogger Hadi Hariri put me in contact with Oleg Stepanov.

The first suggestion was trying the 32-bit version of dotTrace, which wasn't an option for me because, as I said, my application and all the supporting utilities are 64-bit, it runs under a 64-bit process, so that's ultimately how I need to profile it.

Then Oleg explained that the problem is that VS is a 32-bit application and it was looking for a registry key in the wrong place, not finding it, and then it was assuming dotTrace wasn't available.

Hmmm... That sounded eerily familiar, didn't it? Once again the little annoyances of developing 64-bit code with 32-bit tools come to bite us.

To fix the problem, just like the other time it happened, we just need to copy the right registry key to its corresponding place under the Wow6432Node key.

Open the Registry Editor and go to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ key. One of its GUID-named subkeys will contain the dotTrace information. Just search for dotTrace and find the right subkey. Now just copy (or export/edit/import) that key under HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ and you're ready to restart Visual Studio and see all the integrated dotTrace features come alive.


Posted 03-12-2010 12:15 PM by sergiopereira

[Advertisement]

Comments

Tuna Toksoz wrote re: dotTrace 3.1 64-bit disabled inside Visual Studio 2008
on 03-13-2010 6:05 PM

I was assuming that this was a bug! Thank you so much for the fix!

Sean Kearon wrote re: dotTrace 3.1 64-bit disabled inside Visual Studio 2008
on 03-15-2010 6:00 PM

That's really useful, thanks very much :)

Simon Draht wrote re: dotTrace 3.1 64-bit disabled inside Visual Studio 2008
on 03-16-2010 4:42 AM

Did not work on my machine for the R# Testrunner from the 5.x Beta 2 (and Vista 64Bit), but at least I got the dotTrace-Button beside the run button in VS2008.

Still worth it, thanks a lot.

Sergio L. wrote re: dotTrace 3.1 64-bit disabled inside Visual Studio 2008
on 06-15-2010 8:12 AM

Thanks, it works!

Pedro Reys wrote re: dotTrace 3.1 64-bit disabled inside Visual Studio 2008
on 07-20-2010 3:39 PM

Thank you, Sergio.

It worked like a charm.

Van wrote re: dotTrace 3.1 64-bit disabled inside Visual Studio 2008
on 08-18-2010 3:48 AM

Helps much! Thanks!

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)