I try to use the Addin from VisualNDepend in Visual Studio 2010, but when I open Visual Studio 2010 I always get the following error message.
************** 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
I already stayed in contact with the Support of VisualNDepend, but they couldn't helped me either. Does anybody of you has an idea why this could fail?