Outlook加载项自动将加载行为设置为2 [英] Outlook Add-In Automatically Setting Load Behavior to 2

查看:244
本文介绍了Outlook加载项自动将加载行为设置为2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我查看了很多有关此问题的帖子,但似乎都没有真正的答案。

I've looked at a large number of posts regarding this issue, but none seem to have a true answer.

我的加载项创建并检查联系人列表在用户Outlook Outlook启动时。但是,最近加载项已立即将LoadBehavior注册表项设置为"2"并且从未实际运行。 

My add-in creates and checks a contact list in the users Outlook upon Outlook startup. However, recently the add-in has been immediately been setting the LoadBehavior registry key to '2' and never actually running. 

我是否可以运行任何其他检查以查看导致此问题的原因?它曾经工作,只是偶尔将行为更改为'2',但现在每次加载应用程序时都会这样做。 

Are there any additional checks that I can run to see what's causing this? It used to work and only occasionally change behavior to '2', but now is doing it every time I load the app. 

推荐答案

Hello Josh,

Hello Josh,

Microsoft Office应用程序可以禁用意外行为的VSTO加载项。如果应用程序未加载VSTO加载项,则应用程序可能已禁用硬件或软件禁用VSTO加载项。

硬件当VSTO加载项导致应用程序意外关闭时,可能会发生禁用。如果在  Startup   ; 事件正在执行VSTO加载项中的
处理程序。

Hard disabling can occur when an VSTO Add-in causes the application to close unexpectedly. It might also occur on your development computer if you stop the debugger while the Startup event handler in your VSTO Add-in is executing.

VSTO添加时可能会发生软禁用-in产生的错误不会导致应用程序意外关闭。例如,如果某个应用程序在  启动   事件
处理程序正在执行。有关详细信息,请参阅
如何:重新启用VSTO添加 - 已被禁用
文章。

Soft disabling can occur when a VSTO Add-in produces an error that does not cause the application to unexpectedly close. For example, an application might soft disable a VSTO Add-in if it throws an unhandled exception while the Startup event handler is executing. Read more about that in the How to: Re-enable a VSTO Add-in That Has Been Disabled article.

Outlook 2013及更高版本监控加载项性能指标,例如加载项启动,关闭,文件夹切换,项目打开和调用频率。 Outlook记录每个性能监视度量标准的已用时间(以毫秒为单位)。
例如,启动指标衡量Outlook启动期间每个连接的加载项所需的时间。然后,Outlook计算连续5次迭代的中位启动时间。如果中位启动时间超过1000毫秒
(1秒),则Outlook会禁用该加载项,并向用户显示已禁用加载项的通知。用户可以选择始终启用加载项,在这种情况下,即使加载项超过1000
毫秒性能阈值,Outlook也不会禁用加载项。查看以下windows注册表配置单元:

HKCU\Software\Policies\Microsoft\Office\15.0\Outlook\Resiliency\AddinList


这篇关于Outlook加载项自动将加载行为设置为2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆