Visual Studio 2008 发布失败,无法加载 dll (envdte.dll) [英] Visual Studio 2008 Publish fails, can't load dll (envdte.dll)
问题描述
在安装和卸载各种 MS SDK 后,我开始收到此错误
I started to get this error after I had installed and uninstalled various MS SDKs
错误:发布失败,出现以下错误:无法将System.__ComObject"类型的 COM 对象转换为接口类型EnvDTE.Project".此操作失败,因为 IID 为{866311E6-C887-4143-9833-645F5B93F6F1}"的接口的 COM 组件上的 QueryInterface 调用因以下错误而失败:加载类型库/DLL 时出错.(来自 HRESULT 的异常:0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
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)).
即使重新安装 SDK 也无法解决问题.
Even reinstalling the SDKs didn't fix the problem.
我终于找到了问题的答案,我将其作为答案发布.
I finally found the answer to the problem, which I'll post as an answer.
推荐答案
我用管理员权限打开'cmd',然后
I opened 'cmd' with Administrator privileges, and did
cd C:\Program Files (x86)\Common Files\microsoft shared\MSEnv
regsvr32 dte80.olb
regsvr32 dte80a.olb
regsvr32 dte90.olb
regsvr32 dte90a.olb
之后事情就神奇地运作了.
and things magically worked after that.
这篇关于Visual Studio 2008 发布失败,无法加载 dll (envdte.dll)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!