Monday, January 11, 2016

Resolve issue with ASP.net session timeout with report viewer

Issue: asp.net session error in Iframes within report viewer as shown below.





Solution

1) In the Report viewer set the KeepSessionAlive to false

<html >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div>
        <rsweb:ReportViewer ID="ReportViewer1" KeepSessionAlive="false" runat="server"></rsweb:ReportViewer>
    </div>
    </form>
</body>
</html>


2) Increase the session timeout
 <system.web>
    <sessionState timeout="120" mode="InProc" cookieless="false" />
   </system.web>

No comments:

Post a Comment