【问题标题】:EWS/Exchange.asmx return error code 401 on MacOSEWS/Exchange.asmx 在 MacOS 上返回错误代码 401
【发布时间】:2021-05-02 11:18:27
【问题描述】:

401 UnAuthorized Access when using EWS to connect to mailbox

这是我的问题,但没有任何解决方案! EWS 在 Windows 上运行,但是当我在我的 MacOS 上运行它时 - 401 未经授权!

【问题讨论】:

    标签: windows macos outlook exchangewebservices


    【解决方案1】:

    解决方案: 我添加了https://www.nuget.org/packages/Microsoft.Exchange.WebServices.NETStandardnuget 然后 运行 apt-get update && apt-get -y install gss-ntlmssp 到 Dockerfile(对于 Ubuntu,可能需要 Debian)。 对于 Linux 也需要为 ExchangeService 设置 UseDefaultCredentials = false。

    【讨论】:

      猜你喜欢
      • 2021-12-05
      • 2020-09-06
      • 2016-01-17
      • 1970-01-01
      • 1970-01-01
      • 2014-06-30
      • 1970-01-01
      • 2021-12-28
      • 2012-07-02
      相关资源
      最近更新 更多