views:

93

answers:

2

I'm trying to load SOS extension in visual studio 2010 (.Net framework 4) in a vb.net app without success.

First i found the following article suggesting that I type "!load sos" in the immidiate window. It resulted in the following error message:

Error during command: extension C:\Windows\Microsoft.NET\Framework64\v4.0.30319\sos.dll could not load (error 193)

Next I found an article suggesting .loadby sos clr. That gave me the following error:

Method arguments must be enclosed in parentheses.

How do I load it?

+3  A: 

You are running on a 64-bit version of Windows. Debugging with sos.dll is not possible when your program is 64-bit as well, Visual Studio is a 32-bit process.

Fix: Project + Properties, Compile tab, scroll down, Advanced, Target CPU = x86.

Hans Passant