【发布时间】: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