我基本上遵循https://learn.microsoft.com/en-us/visualstudio/vsto/deploying-a-vsto-solution-by-using-windows-installer?view=vs-2019来创建msi安装程序。安装进行得很顺利,我看到了注册表值。然而,Outlook显示的是不活动的外接程序,甚至无法在拨号的COM插件上显示.如有任何建议,敬请见谅。我正在使用Visual 2017和Outlook 2016 32位。
谢谢!
作为活动插件是理想的。
更新:
日志显示无效的URI: URI方案无效。“”“
************** Exception Text **************
System.UriFormatException: Invalid URI: The URI scheme is not valid.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri..ctor(String uriString)
at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.CreateCustomizationDomainInternal(String solutionLocation, String manifestName, String documentName, Boolean showUIDuringDeployment, IntPtr hostServiceProvider, Boolean useFastPath, IntPtr& executor)
at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.Microsoft.VisualStudio.Tools.Office.Runtime.Interop.IDomainCreator.CreateCustomizationDomain(String solutionLocation, String manifestName, String documentName, Boolean showUIDuringDeployment, IntPtr hostServiceProvider, IntPtr& executor)这是否意味着缺少所需的组件?
谢谢,
发布于 2022-11-14 22:03:36
如果应用程序成功加载VSTO外接程序,则LoadBehavior值将更改为3,并在应用程序关闭后保持在3。
Outlook可能禁用外接程序有多种原因。以下只列出了其中一些:
Microsoft应用程序可以禁用意外行为的VSTO外接程序。如果应用程序没有加载VSTO外接程序,则应用程序可能会硬禁用或软禁用VSTO外接程序。
当VSTO外接程序导致应用程序意外关闭时,可能会发生硬禁用。如果在VSTO外接程序中的Startup事件处理程序正在执行时停止调试器,也可能会在开发计算机上发生这种情况。
当VSTO外接程序产生一个不会导致应用程序意外关闭的错误时,可能会发生软禁用。例如,如果应用程序在执行Startup事件处理程序时抛出未处理的异常,则可能会软禁用VSTO外接程序。
当您重新启用软性禁用的VSTO外接程序时,应用程序立即尝试加载VSTO外接程序.如果最初导致应用程序软禁用VSTO外接程序的问题尚未解决,则应用程序将再次软禁用VSTO外接程序。有关详细信息,请参阅如何:重新启用已禁用的VSTO外接程序。
可以设置VSTO_SUPPRESSDISPLAYALERTS Windows环境变量,以便在加载VSTO外接程序时启用详细的VSTO ()错误消息。
https://stackoverflow.com/questions/74436778
复制相似问题