Visual Studio 2008 Publish fails, can't load dll (envdte.dll)

女生的网名这么多〃 提交于 2019-12-25 08:36:42

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/9354007/visual-studio-2008-publish-fails-cant-load-dll-envdte-dll

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!