使用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
相关产品推荐
相关产品推荐

