2013-08-16 48 views
0

我正在使用telerik Tabstrip。在页面浏览量(4)我有Reportviewers。ReportViewerSession已过期

这些报告位于第三和第四个选项卡中。经过一段时间后,我到达选项卡,报告查看器会话过期。

我试过KeepSessionAlive = true,但没有帮助。有人建议修复这个吗?

  <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" KeepSessionAlive="true" 
       Height="1400px" ProcessingMode="Remote" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="100%" SizeToReportContent="True" 
       Visible="true"> 
      <ServerReport ReportPath="/Prod/EmployeeReport" /> 
      </rsweb:ReportViewer>  

       </telerik:RadPageView> 

错误:

 Exception information: Exception type: AspNetSessionExpiredException Exception  message: Die ASP.NET-Sitzung ist abgelaufen oder konnte nicht gefunden >werden. at 
Microsoft.Reporting.WebForms.ViewerDataOperation..ctor() at   
    Microsoft.Reporting.WebForms.HttpHandler.GetHandler(String operationType) at   Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionS> tep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&       >completedSynchronously) 

回答

1

我面临着像你一样的问题了3天,我曾试图几乎一切都像初始化会话变量,增加的sessionState超时,设置cookie的=假,配置一个sessionstate服务器,但没有为我工作。

我想通了,从真到假设置requireSSL解决了这个问题,因为我没有使用SSL

<httpCookies httpOnlyCookies="true" requireSSL="false" domain="" /> 

这是我的ReportViewer配置在我的aspx页面accesing页面

<rsweb: ReportViewer ID ="ReportViewer1" runat ="server" Font-Names ="Verdana" Font-Size="8pt" 
SizeToReportContent="true" InteractivityPostBackMode="AlwaysSynchronous" AsyncRendering="true" KeepSessionAlive="true" 
    ProcessingMode="Remote" Width="865px"> 
    <ServerReport ReportPath="/REPORTFOLDER/REPORTNAME" ReportServerUrl="http://localhost/Reportserver" />