Outlook 加载项不适用于桌面应用程序

Outlook add-in is not working on desktop app

我在 windows 10 上使用 Office365 和最新版本,并尝试构建 outlook 加载项。

我按照 documentation.

构建了 Outlook 加载项

我使用 npm run dev-server 编译了插件,并按照 this.

旁加载了插件

之后,我尝试使用加载项,但它似乎只能在管理员中使用。

即使我 运行 Outlook 作为管理员(桌面应用程序),它也不起作用。

但是如果我注销一个用户,然后以管理员身份登录,就可以了。

作为普通用户(即使我通过点击“运行 以管理员身份打开 Outlook”),如果我 运行 加载项,它会显示以下错误。然后我点击了重启按钮,然后它就永远加载了。

我尝试解决此问题,我在安全模式下打开 Outlook,禁用所有加载项,然后重试。

但是失败了。

其次,我重新安装或更新了Office365,但也没有用。 reference

有什么方法可以 运行 Outlook 以普通用户身份使用加载项?

我的windows10版本1903以上reference

有多种原因可能导致此错误消息。但传播最广的原因是 Protected mode 在 Internet Explorer 中关闭。以下是 Outlook 团队的声明:

This error is by-design for add-ins in Outlook clients that are rendered using IE and do not have Protected Mode enabled. Protected Mode is a security feature when using IE, and it is strongly recommend that it be enabled while using add-ins.

If you do not or cannot enable Protected Mode, a possible workaround is to upgrade to a newer Windows and Office, so add-ins are rendered using Edge Webview instead of IE. Details about what versions that Webview are supported can be found here.

  1. 在 Internet Explorer 中,单击 Tools 按钮,然后单击 Internet Options。 2、点击Security标签,然后selectInternet Sites Zone.
  2. Select Enable Protected Mode 复选框,然后单击 Ok
  3. 重新启动 Internet Explorer 和 Outlook。检查是否有帮助。
  4. 如果没有,请在 Restricted Zone 上启用 Protected mode,然后重试。

参见 Office Add-in don't start if you disable protected mode for the Restricted Sites zone in Internet Explorer

此外,您可能会发现 Troubleshoot user errors with Office Add-ins 文章很有帮助。