system.nullReferenceException在Microsoft.office.tools.ribbon.ribbonbase.dispose(boolean)上prjspecaddin.oberon.dispose(boolean)
我创建了两个类似的VSTO ADDINS,第一个编译并在所有机器上工作,但是第二个机器(具有类似的功能,但是具有Windows forms组件不起作用,除了我的机器以外的任何机器上都无法正确启动)。第二个addin在microsoft.office.tools.ribbon.ribbon.dispose.dispose(boolean)上有一个错误“ system.nullReferenceException(prjspececaddin.oberon.dispose(boolean)),system.componentmon.componentsmodel.componentmmodel.component.finalize.finalize.finalize()”。 我在此处和其他互联网中搜索了可能的解决方案,但是这些方法都没有帮助我。我什至尝试将代码从第二个加载项移动到第一个加载项,但我仍然会遇到错误。 我不使用第三方库。只有Microsofts名称空间。
I created two similar VSTO addins and the first one compiles and works on all machines, but the second one (with similar functionality, but having Windows Forms components does not work, does not start correctly on any machine except mine). Second addin have an error "System.NullReferenceException at Microsoft.Office.Tools.Ribbon.RibbonBase.Dispose(Boolean) at PrjSpecAddIn.Oberon.Dispose(Boolean) at System.ComponentModel.Component.Finalize()".
I searched for possible solutions here and in the rest of the Internet, but none of the methods helped me. I even tried to move the code from the second add-in to the first, but I still get the error.
I don't use third party libraries. Only Microsofts namespaces.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论