无效的单词插件 ​​- 重新启用

发布于 2024-09-28 17:36:57 字数 256 浏览 0 评论 0原文

我的问题是 VSTO word 2007 插件被阻止。 一旦插件发生故障,在非调试模式下,它无法从 word 重新启用它(将其状态从非活动状态设置为活动状态)。 执行此操作的唯一方法是重新编译插件。 我尝试使用 LoadBehaviour=3 (word 在运行后立即将此值设置为 0)。没有弹性条目。

它不是由初始化异常引起的(我已经调试过它)。

我怀疑,该词已在某处缓存了插件 GUID,并且不允许激活它。是否可以删除所有插件信息,然后在word中重新安装一次?

my problem is blocked VSTO word 2007 addin.
Once the addin breaks down, in non-debug mode, its unable to reenable it from word (set its status from inactive to active).
The only way to do this is to recompile the plugin.
I tried with LoadBehaviour=3 (word sets this value immediately into 0, after its run). There ae no Resiliency entries.

Its not caused by the exception on initialize (i have debugged it).

My suspect is, that word has cached plugin GUID somewhere, and doesnt allow to activate it. Is it possible, to remove all plugin informations, and reinstall it in word one more time?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

若言繁花未落 2024-10-05 17:36:57

一旦禁用(没有附加调试),您必须手动重新启用它(应用程序菜单 -> Word 选项 -> 加载项 -> 在页面底部的菜单中选择禁用的加载项 -> 启用您的加载项)。

您无法以编程方式重新启用它,因为加载项将无法加载并且根本无法执行任何代码。
当您在 Visual Studio 中重新编译它时,它可能会取消注册并再次注册,因此您不会注意到该问题。

Once disabled (without debug attached) you have to re-enable it manually (Application Menu -> Word options -> Add-Ins -> select Disabled Add-ins in the menu at the bottom of the page -> enable your add-in).

You cannot re-enabled it programmatically because the add-in won't load and won't be able to execute any code at all.
When you recompile it in Visual Studio it probably gets deregistered and registered again, so you don't notice the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文