Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将Microsoft.Reporting.WebForms.ReportViewer对象值存储到Azure Redis缓存_Azure_Caching_Redis - Fatal编程技术网

如何将Microsoft.Reporting.WebForms.ReportViewer对象值存储到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"]; 您可以共享更多错误详细信息吗?我正

在InProc会话配置的情况下,应用程序运行完全正常。但是,当使用Azure Redis缓存时,它会抛出错误。 是否需要对对象进行序列化/反序列化。如果是,那么我该怎么做

我的代码是:

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缓存之间的任何关系。