ASP.NET session has expired or could not be found -> Because the Session.SessionID changes (Reporting Services)

前端 未结 10 1353
粉色の甜心
粉色の甜心 2020-12-31 10:04

1.-I\'m using reporting services and sometimes I get this error ASP.NET session has expired or could not be found when I try to load a report.

2.-I real

10条回答
  •  再見小時候
    2020-12-31 10:17

    I'm using report viewer 11.0.0; in your web config on system.web section, put the next configuration:

    
    

    When you are generating the report (C# code bellow) in the reportviewer object change the KeepSessionAlive property to false and the AsynkRendering property to false, and that's all

            this.rvReporte.KeepSessionAlive = false;
            this.rvReporte.AsyncRendering = false;
    

    (rvReporte) is a ReportViewer control located on my asp.net Form This solution work for me, i hope that work for other people.

    Regards

提交回复
热议问题