Visual Studio 2008 发布失败,无法加载 dll (envdte.dll)
在安装和卸载各种 MS SDK 后,我开始收到此错误
错误:发布失败并出现以下错误:无法将“System.__ComObject”类型的 COM 对象转换为接口类型“EnvDTE.Project”。此操作失败,因为对 IID 为“{866311E6-C887-4143-9833-645F5B93F6F1}”的接口的 COM 组件上的 QueryInterface 调用由于以下错误而失败:加载类型库/DLL 时出错。 (HRESULT 异常:0x80029C4A (TYPE_E_CANTLOADLIBRARY))。
即使重新安装 SDK 也无法解决问题。
我终于找到了问题的答案,我将其作为答案发布。
I started to get this error after I had installed and uninstalled various MS SDKs
Error: Publish failed with the following error: Unable to cast COM object of type 'System.__ComObject' to interface type 'EnvDTE.Project'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{866311E6-C887-4143-9833-645F5B93F6F1}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
Even reinstalling the SDKs didn't fix the problem.
I finally found the answer to the problem, which I'll post as an answer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我以管理员权限打开“cmd”,然后
事情就神奇地发生了。
I opened 'cmd' with Administrator privileges, and did
and things magically worked after that.