症状
安装或升级到 Microsoft Exchange Server 2019 累积更新 (CU) 8 后,会在计算机事件日志中收到类似以下内容的错误消息:
日志名称:应用程序
源: ASP.NET 4.0.30319.0
事件 ID:1309
任务类别: Web 事件
级别:警告
关键字:经典
说明:
异常信息:
异常类型:DuplicateKeyException
异常消息:无法添加重复键。 请改用“插入”
在 Microsoft.Exchange.Security.Authentication.FederatedAuthService.CacheReader.AddEntry (字符串 userKey、Int32 userPolicy、ConfigWrapper 配置)
或
日志名称:应用程序
来源: MSExchange 通用
事件 ID:4999
任务类别:常规
级别:错误
关键字:经典
说明:
即将针对进程 ID: 3292 发送的 Watson 报告,参数:E12IIS、c-RTL-AMD64、15.02.0659.004、w3wp#MSExchangePowerShellFrontEndAppPool、M.Exchange.Security、M.E.S.A.F.CacheReader.AddEntry、M.E.C.TimeoutCache.DuplicateKeyException、28e2-dumptidset、15.02.0659.004。
ErrorReportingEnabled: True
或
日志名称:应用程序
来源:MSExchange 前端 HTTP
事件 ID:1003
任务类别:核心
级别:错误
关键字:经典
说明:
[PowerShell]发生内部服务器错误。 未处理的异常是:Microsoft.Exchange.Collections.TimeoutCache.DuplicateKeyException:无法添加重复密钥。 请改用“插入”
在 Microsoft.Exchange.Security.Authentication.FederatedAuthService.CacheReader.AddEntry (字符串 userKey、Int32 userPolicy、ConfigWrapper 配置)
在 Microsoft.Exchange.Security.Authentication.FederatedAuthService.BasicAuthPolicyRepo.GetUserPolicy (字符串 userKey, Int32 traceId, Int32& userPolicy, HttpApplication httpApplication, IRecipientSession recipientSession, IConfigurationSession configSession, ConfigWrapper config)
在 Microsoft.Exchange.Security.Authentication.FederatedAuthService.BasicAuthPolicyEvaluator.IsBasicAuthAllowed (字符串 userKey, 字符串 protocolName, Int32 traceId, HttpApplication httpApplication, IRecipientSession recipientSession, IConfigurationSession configSession, ConfigWrapper config)
在 Microsoft.Exchange.HttpProxy.ProxyModule.IsLegacyAuthAllowed (HttpApplication httpApplication)
位于 Microsoft.Exchange.HttpProxy.ProxyModule.OnPostAuthenticateInternal (HttpApplication httpApplication)
位于 Microsoft.Exchange.Common.IL.ILUtil.DoTryFilterCatch (Action tryDelegate, Func'2 filterDelegate, Action'1 catchDelegate)
原因
此问题是由 Exchange Server 2019 CU8 中应用的内部更改引起的。 现在可以放心地忽略这些事件日志条目了。 此行为将在以后的更新中得到解决。
解决方法
若要解决此问题,请安装 Exchange Server 2019 的累积更新 9 或 Exchange Server 2019 的更高累积更新。
解决方法
收到“症状”部分中描述的 DuplicateKeyException 错误时,系统可能会提示用户输入 Outlook 的凭据。 可以运行以下命令还原 CU8 中所做的更改:
Set-OrganizationConfig -DefaultAuthenticationPolicy $null