【问题标题】:VisualNDepend Visual Studio 2010 Addin failedVisualNDepend Visual Studio 2010 插件失败
【发布时间】:2010-09-27 16:25:57
【问题描述】:

我尝试在 Visual Studio 2010 中使用 VisualNDepend 中的插件,但是当我打开 Visual Studio 2010 时,我总是收到以下错误消息。

************** Exception Text **************
Exception on Addin.Connect.OnConnection()
Exception in NDepend v3.0.3.4916
.NET Fx Version: 4.0.30319.1
OS Windows Version: 6.1.7600.0
Processor Architecture: x64
Execution Environment: Hosted in VisualStudio v10.0
Error Hash: 3.0.3.4916 PRO 2A215D8F System.InvalidCastException
LicenseId: 

Exception.Type {System.InvalidCastException}
Exception.Message {Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.CommandBars.CommandBarControl'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{43FD5911-7BAC-4BDC-AB6C-2DE65B5C0233}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).}
Exception.StackTrace {
 ff.a()
 abz..ctor(DTE2 A_0, aon A_1, ajx A_2)
 zo..ctor(AddIn A_0, DTE2 A_1, aon A_2)
 NDepend.AddIn.VisualStudio.V3.Connect.a(AddIn A_0, DTE2 A_1)
 NDepend.AddIn.VisualStudio.V3.Connect.a(Object A_0, ext_ConnectMode A_1, Object A_2, Array& A_3)
 NDepend.AddIn.VisualStudio.V3.Connect.b(Object A_0, ext_ConnectMode A_1, Object A_2, Array& A_3)}

Exception.InnerException = null

我已经与 VisualNDepend 的支持人员保持联系,但他们也无法帮助我。你们中有人知道为什么这会失败吗?

【问题讨论】:

    标签: visual-studio-2010 visual-studio-addins


    【解决方案1】:
    • 您能否尝试使用已修复几个错误的最新 v3.1.0 版本?
    • 能否确保您的 NDepend 安装中的 NDepend 文件没有被 Window阻止
    • 您可以尝试在 VS 中仅安装 NDepend adin 吗? 它适用于 VS 2008 吗?

    实际上,我很惊讶支持没有帮助您(我在那里工作),我们致力于修复所有报告的错误。

    【讨论】:

    • 嗨,Patrick,确实是的 - 我们在今年 5 月 26 日进行了邮件对话。但是您说:“我们从未观察到此错误。我们会注意并会在接下来的几周内与您联系并进行修复。”所以,如果你现在能帮助我,那就太好了。
    • 但是要回答你的问题。 1.) v.3.1.0 没有修复该错误,但它只出现在 VS 2010 的状态行中,上面写着:“由于 VS 错误,NDepend 插件无法加载,请手动重新加载插件或重新启动 VS”。我认为这与以前的错误相同,但没有显示对话框。 2.) 否 - 所有文件都可用且未被阻止。 3.) 是的,它可以像魅力一样与 VS 2008 一起使用。
    • "NDepend addin 由于 VS bug 加载失败,请手动重新加载 Addin 或重启 VS" VS 状态栏确实是我们在 v3.1.0 中添加的报告,而不是让异常显示用户。
    • 关于VS的bug问题,恐怕我们无能为力。我们正在调用一些 VS 插件初始化 API,它似乎在您的 VS 2010 安装中永久失败。
    • 您是否尝试手动重新加载插件?你在另一台安装了 VS 2010 的机器上试过吗?
    猜你喜欢
    • 2012-08-12
    • 1970-01-01
    • 1970-01-01
    • 2011-07-08
    • 1970-01-01
    • 1970-01-01
    • 2014-08-15
    • 1970-01-01
    • 2015-08-23
    相关资源
    最近更新 更多