0

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

当我运行 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 Log 中的错误消息: AppDomain.CurrentDomain.AssemblyResolve ask for a <AppName>.resources assembly?

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

4

2 回答 2

0

我想安装程序不包括本地化资源项目输出。并检查 adxloader.log 文件是否有问题。

于 2013-07-19T13:58:30.897 回答
0

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

Sergey Grischenko Add-in Express 团队

于 2013-07-19T14:02:34.490 回答