【问题标题】:Exception has been thrown by the target of an invocation. (REDIS Cache)调用的目标已引发异常。 (REDIS 缓存)
【发布时间】:2023-04-06 14:40:01
【问题描述】:

我正在尝试解决我们在 Web 应用程序上使用 REDIS 缓存时遇到的特定问题,但需要帮助了解堆栈跟踪。

当用户查看报表查看器时,我们会间歇性地将Exception has been thrown by the target of an invocation 登录到我们的错误表中,但没有迹象表明客户端出现任何问题。

我已经阅读了这篇文章:How to solve: "exception was thrown by the target of invocation" C#,但它似乎没有涵盖我们的具体问题。

我们的记录器记录的堆栈跟踪;

 在 System.RuntimeMethodHandle.SerializationInvoke(IRuntimeMethodInfo 方法,对象目标,SerializationInfo 信息,StreamingContext 和上下文)
    在 System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(对象 obj,SerializationInfo 信息,StreamingContext 上下文)
    在 System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder 持有者)
    在 System.Runtime.Serialization.ObjectManager.DoFixups()
    在 System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler 处理程序,__BinaryParser serParser,布尔 fCheck,布尔 isCrossAppDomain,IMethodCallMessage methodCallMessage)
    在 System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(流序列化流,HeaderHandler 处理程序,布尔 fCheck,布尔 isCrossAppDomain,IMethodCallMessage methodCallMessage)
    在 Microsoft.Web.Redis.BinarySerializer.Deserialize(Byte[] data) 在 D:\BuildAgent\work\f55792526e6d9089\src\Shared\BinarySerializer.cs:line 37
    在 Microsoft.Web.Redis.ChangeTrackingSessionStateItemCollection.GetData(String normalizedName) 在 D:\BuildAgent\work\f55792526e6d9089\src\Shared\ChangeTrackingSessionStateItemCollection.cs:line 156
    在 D:\BuildAgent\work\f55792526e6d9089\src\Shared\ChangeTrackingSessionStateItemCollection.cs:line 141 中的 Microsoft.Web.Redis.ChangeTrackingSessionStateItemCollection.get_Item(String name)
    在 System.Web.SessionState.HttpSessionStateContainer.get_Item(字符串名称)
    在 Microsoft.Reporting.WebForms.ViewerDataOperation..ctor()
    在 Microsoft.Reporting.WebForms.HttpHandler.GetHandler(字符串操作类型)
    在 Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext 上下文)
    在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

【问题讨论】:

    标签: sql-server redis reportviewer


    【解决方案1】:

    在反序列化期间似乎是一个问题。类定义在序列化和反序列化之间是否发生了变化?

    【讨论】:

    • 我不确定,那会是 redis 缓存的特定问题吗?
    猜你喜欢
    • 2019-01-22
    • 2018-11-08
    • 2018-02-14
    • 1970-01-01
    • 2016-03-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-27
    相关资源
    最近更新 更多