redis会话状态失败

klh5stk1  于 2021-06-09  发布在  Redis
关注(0)|答案(0)|浏览(288)

一点背景:
使用iis在aws部署的.net core 2.2应用程序
根据aspnet文档实现了redis[https://docs.microsoft.com/en-us/aspnet/core/performance/caching/distributed?view=aspnetcore-2.2]但是,我们得到以下例外情况:

Session cache read exception, Key:65871781-f1f5-71d3-d4e8-a7e031f403eb System.TypeLoadException: Could not load type 'DotNetAgent.Instrumenter.Factories.Web.External.RedisTrackerFactory' from assembly 'DotNetAgent, Version=1.0.0.0, Culture=neutral, PublicKeyToken=87b69d96e75fbfca'. at StackExchange.Redis.ConnectionMultiplexer.ExecuteSyncImpl[T](Message message, ResultProcessor1 processor, ServerEndPoint server)
at StackExchange.Redis.RedisBase.ExecuteSync[T](Message message, ResultProcessor1 processor, ServerEndPoint server) in C:\projects\stackexchange-redis\src\StackExchange.Redis\RedisBase.cs:line 54 at StackExchange.Redis.RedisDatabase.ScriptEvaluate(String script, RedisKey[] keys, RedisValue[] values, CommandFlags flags) in C:\projects\stackexchange-redis\src\StackExchange.Redis\RedisDatabase.cs:line 1134 at Microsoft.Extensions.Caching.StackExchangeRedis.RedisExtensions.HashMemberGet(IDatabase cache, String key, String[] members) at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.GetAndRefresh(String key, Boolean getData) at Microsoft.AspNetCore.Session.DistributedSession.Load() fail: Microsoft.AspNetCore.Session.DistributedSession[6]

该问题只发生在会话状态缓存中,而常规数据已成功缓存。。。
有什么想法吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题