You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用IMiseValidator验证令牌时遇Microsoft.IdentityModel.Logging程序集加载失败问题求助

使用IMiseValidator验证令牌时遇Microsoft.IdentityModel.Logging程序集加载失败问题求助

我目前在使用IMiseValidator做令牌验证的工作,但是启动应用后一直碰到文件找不到的错误。具体的异常提示如下:

[MiseValidator] Exception message: Could not load file or assembly 'Microsoft.IdentityModel.Logging, Version=8.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.

出错的代码片段是这段,错误就发生在获取IMiseHandler的那一行:

Item.TrackTrace($"[MiseValidator] Initialising Mise handler.");
IMiseHandler miseHandler = MiseStandard.Instance.GetMiseHandler(); // <- 错误触发位置

我已经尝试了好几种办法来解决,但都没效果:

  • 安装了相关的NuGet包,也更新了项目的.csproj文件
  • 尝试新建了app.config和package.config文件,问题依旧存在
  • 试过配置_FunctionsSkipCleanOutput这个参数,还是没能解决问题

有没有有经验的朋友能帮我排查下这个问题?谢谢大家了!

内容来源于stack exchange

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.08 10:08:06