Breakpoint not hooked up when debugging in VS.Net 2005

后端 未结 12 1461
庸人自扰
庸人自扰 2020-12-09 23:38

Been running into this problem lately... When debugging an app in VS.Net 2005, breakpoints are not connected. Error indicates that the compiled code is not the same as the

12条回答
  •  感动是毒
    2020-12-10 00:13

    Are you creating a DLL project that is consumed by an external executable? Are you using .NET or COM?

    If you are using the COM Interop with .NET, the DLL versions can sometimes be a problem when the executable loads the DLL. For instance, if your daily build cranks out an incrementing build number but your debug DLL has a smaller build number, the executable won't load the debug DLL. To fix this, you will need to scan the HKEY_CLASSES_ROOT\CLSID directory in your registry for the GUID/CLSID of your .NET/COM component. Under InProc32, delete entries with a higher version number than your debug DLL.

    Again, the above only applies to .NET + COM Interop DLLs.

提交回复
热议问题