VS 2008 DebugVisualizer Exception

Posts   
 
    
pat
User
Posts: 215
Joined: 02-Mar-2006
# Posted on: 05-Dec-2007 03:20:05   

Hi,

when I try to use the debug visualizer in VS 2008 RTM I get the following exception:

System.InvalidCastException: Unable to cast object of type 'SD.LLBLGen.Pro.DebugVisualizers.EntityCollectionVisualizer' to type 'Microsoft.VisualStudio.DebuggerVisualizers.DialogDebuggerVisualizer'. at Microsoft.VisualStudio.DebuggerVisualizers.DebugViewerShim.ManagedShim.DelegatedHost.CreateViewer(IntPtr hwnd, HostServicesHelper hsh, SafeProxyWrapper proxy)

or

System.InvalidCastException: Unable to cast object of type 'SD.LLBLGen.Pro.DebugVisualizers.PrefetchPath2Visualizer' to type 'Microsoft.VisualStudio.DebuggerVisualizers.DialogDebuggerVisualizer'. at Microsoft.VisualStudio.DebuggerVisualizers.DebugViewerShim.ManagedShim.DelegatedHost.CreateViewer(IntPtr hwnd, HostServicesHelper hsh, SafeProxyWrapper proxy)

Thanks, Patrick


LLBLGen 2.5 / 5.Nov.2007 / SQL Server / C# / VS 2008 / Adapter Template

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 05-Dec-2007 10:30:22   

For the time being would you please try to manually compile/build the DebugVisulaizer in VS 2008. You should find the Source code in the following path: <LLBLGen Pro Installation Folder>\RuntimeLibraries\Sourcecode\Net2.x\DebugVisualizers

Use the newly built assembly instead of the one found in the following path: <LLBLGen Pro Installation Folder>\RuntimeLibraries\DotNET20\DebugVisualizers

pat
User
Posts: 215
Joined: 02-Mar-2006
# Posted on: 06-Dec-2007 20:25:46   

Thanks I will try it out.

Patrick

GizmoTN76
User
Posts: 36
Joined: 22-Oct-2007
# Posted on: 06-Dec-2007 23:34:37   

Walaa wrote:

For the time being would you please try to manually compile/build the DebugVisulaizer in VS 2008. You should find the Source code in the following path: <LLBLGen Pro Installation Folder>\RuntimeLibraries\Sourcecode\Net2.x\DebugVisualizers

Use the newly built assembly instead of the one found in the following path: <LLBLGen Pro Installation Folder>\RuntimeLibraries\DotNET20\DebugVisualizers

Thanks, that helped me out too. One Item to note, before you rebuild you need to unreference the Microsoft.VisualStudio.DebuggerVisualizers.dll version 8 and rereference the 9 version to make that work.

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 07-Dec-2007 10:55:44   

Thanks a lot for the feedback simple_smile