system.nullReferenceException在Microsoft.office.tools.ribbon.ribbonbase.dispose(boolean)上prjspecaddin.oberon.dispose(boolean)

发布于 2025-02-05 09:45:10 字数 444 浏览 1 评论 0原文

我创建了两个类似的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文