VS2005 start debuging出现错误code 0x80004002

问题描述:

创建新的C# dialog工程,编译,一切正常,debug运行出现如下的提示错误。

An error occurred that usually indicates a corrupt installation (code 0x80004002).
If the problem persists, repair your Visual Studio installation via 'Add or Remove Programs' in Control Panel.

解决方法:

打开cmd,切换到C:\Program Files\Common Files\Microsoft Shared\VS7Debug,注册三个dll文件,如下。

regsvr32 msdbg2.dll

regsvr32 csm.dll

regsvr32 pdm.dll


 

你可能感兴趣的:(C#,Windows)