NonComVisibleBaseClass was detected

来源:互联网 发布:linux的vi编辑器 编辑:程序博客网 时间:2024/05/24 01:46

Issue occured:

"A QueryInterface call was made requesting the default IDispatch interface of COM visible managed class 'xxx. However since this class does not have an explicit default interface and derives from non COM visible class 'System.Windows.Controls.UserControl', the QueryInterface call will fail. This is done to prevent the non COM visible base class from being constrained by the COM versioning rules.." 


How to Fix:

 Tools->Customize->Commands->select Debug->Click Add command->Select Debug->on right hand pane Exceptions click OK


原创粉丝点击