我的解决方案包含 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 中,尽管它显示为已加载...我可以使用任何其他工具来查找问题所在?