2017-03-06 119 views
2

我有用VSTO开发的Outlook加载项,并且使用Visual Studio安装程序安装加载项。安装后,我可以在Outlook中看到自定义加载项已安装(在File-Option-Add-Ins中可见,当然它允许),但它未显示在功能区中。当我在VS中运行项目时,我可以看到Outlook正在启动并停在调试器。未显示自定义Outlook加载项

Outlook AddIn Settings

http://pastebin.com/cWrfUSa8 - 这是部分当色带,标签,该按钮被初始化。代码在调试器打开时也停在那里。请注意,功能区是以设计者的方式生成的,而不是xml。

我检查了SO上的这个问题,LoadBehaviour regkey正在从2更改为3。 Not Showing Outlook Addin

regedit settings

我也根据这个Not Showing Outlook Addin使环境变量,但都显示任何错误。

在事件查看器伊夫挖一点后,发现这一点:

> Outlook disabled the following add-in(s): 



> ProgID: Tieto.MRS.OutlookAddin2013 
GUID: {00000000-0000-0000-0000-000000000000} 
Name: Tieto.MRS.OutlookAddin2013 
Description: Tieto.MRS.OutlookAddin2013 
Load Behavior: 3 
HKLM: 0 
Location: file:///c:/_hg/tieto.meetingroomselector/main/source/tieto.mrs.outloookaddin2013/tieto.mrs.outlookaddin2013/tieto.mrs.outlookaddin2013/bin/release/tieto.mrs.outlookaddin2013.vsto|vstolocal 
Threshold Time (Milliseconds): 1000 
Time Taken (Milliseconds): 1063 
Disable Reason: This add-in caused Outlook to start slowly. 
Policy Exception (Allow List): 0 

可以忽略可笑的短临界时间,并继续我的故事 - >下面这个帖子https://support.microsoft.com/en-us/help/2733070/no-add-ins-loaded-due-to-group-policy-settings-for-office-2013-and-office-2016-programs 伊夫修改了注册表编辑器,并在UI展望文件已经改变 - >慢和禁用COM加载项

Outlook UI

但仍然显示在Outlook中加载没有运气。我现在没有想法。

编辑: 我很好奇为什么事件日志显示不同的时间比用户界面的时间。假设事件日志告诉我真相,我已经在少数几个点上添加了多线程(功能区初始化,配置被加载等),事实上事件日志中的警告消失了。

但不幸的是,仍然没有运气。

Outlook loaded the following add-in(s): 
Name: Tieto.MRS.OutlookAddin2013 
Description: Tieto.MRS.OutlookAddin2013 
ProgID: Tieto.MRS.OutlookAddin2013 
GUID: {00000000-0000-0000-0000-000000000000} 
Load Behavior: 3 
HKLM: 0 
Location: file:///C:/_Hg/Tieto.MeetingRoomSelector/Main/Source/Tieto.MRS.OutloookAddin2013/Tieto.MRS.OutlookAddin2013/Tieto.MRS.OutlookAddin2013/bin/Release/Tieto.MRS.OutlookAddin2013.vsto|vstolocal 
Boot Time (Milliseconds): 281 

EDIT2

创建以下像以前这个简单guide 情景一样一个新的项目。插件安装,允许但不显示。

EDIT3

注意到,GUID在事件查看器是零和HKLM是0,其它加载项具有有效的GUID和HKLM:1

回答

1

将不显示加载与引起ThisAddIn.cs中丢失覆盖

protected override Office.IRibbonExtensibility CreateRibbonExtensibilityObject() 
{ 
    return new Ribbon1(); 
} 

功能区需要使用xml生成,而不是设计人员应用此解决方案。 guid中的空值没有被解决,但是HKLM:0都没有解决。但是插件显示在前景中。

相关问题