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 } }
source share