【问题标题】:How to fix the hresult e_fail error of a call to a com component?如何修复调用 com 组件的 hresult e_fail 错误?
【发布时间】:2020-03-28 07:13:58
【问题描述】:

我想添加参考时遇到这个错误,你能帮我吗,我知道这个问题很普遍,但如果你有解决方案,你能帮我吗?这个错误出现在visual studio 2017

问候!

【问题讨论】:

    标签: asp.net-mvc visual-studio visual-studio-2017


    【解决方案1】:

    终于,我在这个链接中找到了答案:
    https://developercommunity.visualstudio.com/content/problem/260196/add-a-reference-raise-error-error-hresult-e-fail-h.html

    1 以管理员身份打开“VS 2017 的开发人员命令提示符”

    2 CD 放入“C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\PublicAssemblies”

    3 运行“gacutil -i Microsoft.VisualStudio.Shell.Interop.11.0.dll”

    重启后一切正常。

    【讨论】:

      猜你喜欢
      • 2023-03-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-09
      • 2021-08-18
      相关资源
      最近更新 更多