views:

387

answers:

3

Hi,

I am learning to write a debug visualizer in vs2008 C#. But keep getting the error saying that MyDebugVisualizer dll can't be loaded when I am in debug mode and click the magnifying glass icon.

My app project is referencing the visualizer project. Before the type definition I have:

[DebuggerVisualizer(typeof(MyVisualizer))] [Serializable]

I tried putting the visualizer dll in: C:\Program Files\Microsoft Visual Studio 9.0\Common7\Packages\Debugger\Visualizers or C:\Documents and Settings\zlee\My Documents\Visual Studio 2008\Visualizers

Is there something else missing?

+1  A: 

Is it signed? Also are you trying to use the debug visualizer in the same host process as the application you are trying to debug?

Try compiling the visualizer and then just reference it by it's library and file location not the project.

Nick Berardi
+1  A: 

Have you tried using the fusion log tool to determine why the DLL is not loading?

Fusion Log View

JaredPar
A: 

Hi, You already have free debug visualizers. For MS SQL -> VS2008 has a project in samples folder. For non MS SQL you have Linq to Entity debug visualizer free at http://visualstudiogallery.msdn.microsoft.com/en-us/99468ece-689b-481c-868c-19e00e0a4e69

Regards

Venkat

Venkat