简体   繁体   English

未检测到Outlook加载项

[英]Outlook AddIn not detected

I have developed an outlook AddIn, I tested it and it showed up the first time and then disappeared (I assumed it was because I set LoadBehavior to 16, so I changed it to 3). 我开发了一个Outlook AddIn,对其进行了测试,它第一次出现然后消失了(我认为是因为我将LoadBehavior设置为16,所以将其更改为3)。 Check this link for more information about LoadBehavior 检查此链接以获取有关LoadBehavior的更多信息

Then it worked fine for me and some other people. 然后对我和其他一些人来说效果很好。 But for some other people the Addin didn't even show up in Outlook after that, just as if it is not installed. 但是对于其他一些人,此后该插件甚至没有出现在Outlook中,就像没有安装它一样。

1-The registries are correct. 1-注册表正确。

2-The loadBehavior is 3, it does not change to 2. 2-loadBehavior为3,不会更改为2。

3-The outlook AddIn is not listed in the Active, inactive or disabled addins. 3-Outlook加载项未在活动,非活动或禁用的加载项中列出。

4-There is no record for it in the registry's Disabled Addins entry. 4-在注册表的“禁用的加载项”条目中没有记录。

5-The only way it works is by launching the .VSTO file. 5-唯一的工作方式是启动.VSTO文件。 The .msi installation does not enable it. .msi安装不会启用它。

On the machine where it actually worked: 在实际工作的机器上:

The outlook version is 2013 Outlook版本是2013

OS is Windows 7 x64, 作业系统是Windows 7 x64,

.Net Framework 4. .Net Framework 4。

Thi is the same configuration for the all the machines. 所有机器的配置都是相同的。 I also looked at Fusion Log Viewer, nothing there was related to my Addin. 我还查看了Fusion Log Viewer,与我的插件没有任何关系。 It's like the AddIn is not detected or not considered as an AddIn. 就像未检测到AddIn或未将其视为AddIn。 Any ideas why is it behaving in such a way and/or how to fix it ? 任何想法为什么它会以这种方式表现和/或如何修复?

Did you have a chance to check out the COM add-ins list in Outlook. 您是否有机会在Outlook中签出COM加载项列表。 Is your add-in listed there? 列出了您的加载项吗?

If so, there can be several reasons: 如果是这样,可能有几个原因:

  1. Your add-in can be disabled by the host application (Outlook in your case). 外接程序可以被宿主应用程序禁用(在您的情况下为Outlook)。 Microsoft Office applications can disable add-ins that behave unexpectedly. Microsoft Office应用程序可以禁用行为异常的加载项。 If an application does not load your add-in, the application might have hard disabled or soft disabled your add-in. 如果某个应用程序未加载您的加载项,则该应用程序可能已硬禁用或软禁用了您的加载项。

Hard disabling can occur when an 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 add-in is executing. 如果在加载项中的Startup事件处理程序执行时停止调试器,则它也可能在开发计算机上发生。

Soft disabling can occur when an add-in produces an error that does not cause the application to unexpectedly close. 当加载项产生不会导致应用程序意外关闭的错误时,可能会发生软禁用。 For example, an application might soft disable an add-in if it throws an unhandled exception while the Startup event handler is executing. 例如,如果在启动事件处理程序执行期间引发未处理的异常,则应用程序可能会软禁用该加载项。

When you re-enable a soft-disabled add-in, the application immediately attempts to load the add-in. 当您重新启用软禁用的外接程序时,应用程序将立即尝试加载该外接程序。 If the problem that initially caused the application to soft disable the add-in has not been fixed, the application will soft disable the add-in again. 如果最初导致应用程序软禁用外接程序的问题尚未解决,则应用程序将再次软禁用外接程序。 Read more about that in the How to: Re-enable an Add-in That Has Been Disabled article in MSDN. 在MSDN中的“ 如何:重新启用已禁用的外接程序”一文中了解有关此内容的更多信息。

  1. If you see your add-in in the active add-ins list - an error in the Ribbon UI. 如果您在活动加载项列表中看到您的加载项-Ribbon UI中的错误。 See How to: Show Add-in User Interface Errors for more information. 有关更多信息,请参见如何:显示外接程序用户界面错误

Finally, if you don't see the add-in listed in the COM add-ins listed you didn't register it properly in the windows registry. 最后,如果您没有在列出的COM加载项中看到该加载项,则未在Windows注册表中正确注册它。 See the Deploying an Office Solution by Using Windows Installer article in MSDN which described all the required steps for deploying Office add-ins. 请参阅MSDN中的“使用Windows Installer部署Office解决方案”一文,其中描述了部署Office加载项的所有必需步骤。

Are you sure that that your MSI file and your DLL targets Outlook's correct bitness? 您确定您的MSI文件和DLL以Outlook的正确位数为目标吗?

You said that it worked on an x64 installation, are you sure it's compiled for both? 您说它可以在x64安装上使用,确定要为两者都编译吗?

Haven't used much of the VSTO stuff but I think you may need to have your code shimmed. 没有使用太多的VSTO东西,但是我认为您可能需要对代码进行填充。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM