无效的单词插件 - 重新启用
我的问题是 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一旦禁用(没有附加调试),您必须手动重新启用它(应用程序菜单 -> 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.