如何将Microsoft.Reporting.WebForms.ReportViewer对象值存储到Azure Redis缓存
在InProc会话配置的情况下,应用程序运行完全正常。但是,当使用Azure Redis缓存时,它会抛出错误。 是否需要对对象进行序列化/反序列化。如果是,那么我该怎么做 我的代码是:如何将Microsoft.Reporting.WebForms.ReportViewer对象值存储到Azure Redis缓存,azure,caching,redis,Azure,Caching,Redis,在InProc会话配置的情况下,应用程序运行完全正常。但是,当使用Azure Redis缓存时,它会抛出错误。 是否需要对对象进行序列化/反序列化。如果是,那么我该怎么做 我的代码是: Microsoft.Reporting.WebForms.ReportViewer RptViewer_x = (ReportViewer)HttpContext.Current.Session["session variable name"]; 您可以共享更多错误详细信息吗?我正
Microsoft.Reporting.WebForms.ReportViewer RptViewer_x =
(ReportViewer)HttpContext.Current.Session["session variable name"];
您可以共享更多错误详细信息吗?我正在使用以下Nu Get软件包:Microsoft.ReportingServices.ReportViewerControl.WebForms在程序集“Microsoft.Reporting.WebForms.ReportViewer”中键入“Microsoft.Reporting.WebForms.ReportViewer”,版本=15.0.0.0,区域性=中性,PublicKeyToken=89845dcd8080cc91'未标记为可序列化。我们希望看到错误消息。在程序集“Microsoft.Reporting.WebForms.ReportViewer,Version=15.0.0.0,Culture=neutral,PublicKeyToken=89845dcd8080cc91”中键入“Microsoft.Reporting.WebForms.ReportViewer”未标记为可序列化。我尚未看到您的代码与redis缓存之间的任何关系。