MDbg - Debug protocol incompatible with debuggee

I use MDbg to retrieve a list of all of my assemblies listed inside the Application Domain process. Whenever I try to connect a process to MDbgEngine, I get the following exception message:

The debugging protocol is not compatible with debuggee. (Exception from HRESULT: 0x8013134B)

Did I miss something or did I call the method incorrectly? I am using the .NET Framework 4.0, and the main MDbg link is taken from \ Microsoft SDK \ Windows \ v7.0A \ Bin \ MdbgCore.dll.

code:

MDbgProcess process; MDbgEngine mDbgEngine = new MDbgEngine(); process = mDbgEngine.Attach(myProcess.Id); // this line causes the error foreach (CorAppDomain appDomain in process.AppDomains) { foreach (CorAssembly assembly in appDomain.Assemblies) { //get assembly information } } 
+2
source share
1 answer

Mdbg location:

C: / Program Files (x86) / Microsoft SDK / Windows / v7.1 / Bin /

for version 3.x Framework and is located at:

C: / Program Files (x86) / Microsoft SDK / Windows / v7.1 / Bin / NETFX 4.0 Tools /

for version 4.x Framework. Thanks. Good afternoon.

0
source

All Articles