Outlook加载项加载但未显示

时间:2013-07-18 16:07:50

标签: outlook loading add-in

我的解决方案包含2个加载项:1个用于Outlook,1个用于Word。它们在调试模式下完美加载和工作。两者都基于Add-In Express库。两者都在安装期间正确注册,例如:adxregistrator.exe /install=MyOutlookAddIn.dll / privileges = admin 安装程序工作正常,一切都成功完成。当我打开Outlook时,我可以看到MyOutlookAddIn位于Active Add-Ins列表中。但是,我的自定义功能区选项卡根本没有显示。

运行Fusion Log Viewer时,我看到以下消息。这很奇怪,因为我没有任何名为MyOutlookAddIn.resources.DLL的程序集,也没有自动生成...我一整天用谷歌搜索但无济于事。我找不到这些错误消息的任何原因(假设问题来自它)。非常感谢任何指针线索。

===============
*** Assembly Binder Log Entry  (7/17/2013 @ 7:54:46 PM) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Program Files (x86)\Microsoft Office\Office14\OUTLOOK.EXE
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = ZZZ-PC\ZZZ
LOG: DisplayName = MyOutlookAddIn.resources, Version=1.0.0.0, Culture=en,     PublicKeyToken=62b2da92ff61da99
 (Fully-specified)
LOG: Appbase = file:///C:/Users/Leon/AppData/Roaming/My/MyOfficeAddIn/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : MyOutlookAddIn, Version=1.0.0.0, Culture=neutral,     PublicKeyToken=62b2da92ff61da99.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file: 
LOG: Using machine configuration file from          C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: MyOutlookAddIn.resources, Version=1.0.0.0, Culture=en,         PublicKeyToken=62b2da92ff61da99
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL     file:///C:/Users/Leon/AppData/Roaming/My/MyOfficeAddIn/en/MyOutlookAddIn.resources.DLL.
LOG: Attempting download of new URL     file:///C:/Users/Leon/AppData/Roaming/My/MyOfficeAddIn/en/MyOutlookAddIn.resources/MyOutlookAddIn.resources.DLL.
LOG: Attempting download of new URL file:///C:/Users/Leon/AppData/Roaming/My/MyOfficeAddIn/en/MyOutlookAddIn.resources.EXE.
LOG: Attempting download of new URL   file:///C:/Users/Leon/AppData/Roaming/My/MyOfficeAddIn/en/MyOutlookAddIn.resources/MyOutlookAddIn.resources.EXE.
LOG: All probing URLs attempted and failed.

=============================

显然我使用此处提出的解决方案解决了Fusion日志中的错误消息: AppDomain.CurrentDomain.AssemblyResolve asking for a <AppName>.resources assembly?

然而,它并没有解决我的Outlook加载项在Outlook中不显示的主要问题,尽管它显示为已加载...我可以使用任何其他工具来查找问题所在?

2 个答案:

答案 0 :(得分:0)

我认为安装程序不包含Localized Resources项目输出。并检查adxloader.log文件中是否存在问题。

答案 1 :(得分:0)

您使用的是什么版本的加载项Express?请检查Outlook中是否启用了“显示加载项用户界面错误”选项。如果没有,请尝试启用它并重新启动Outlook。可能你会得到任何功能区UI错误。您还可以将示例项目发送到支持电子邮件。我将在我的电脑上测试它。

谢尔盖格里琴科 加载项快速团队