<div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">**A)** I have an asp.net page with a reportViewer control hosting a report in remote processing Mode.</div> <div style="position:
absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">Whenever i would tried to export the report to excel or pdf, i could get the error </div> <div style="position: absolute; left: -10000px; top:
0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position:
absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"> Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired</div> <div style="position: absolute; left: -10000px;
top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">I then came across
this http://msdn.microsoft.com/en-us/library/ms178586.aspx and decided to resolve the problem by going with **SQL Server Mode** sessionState( http://www.nimbleuser.com/blogs/Knowledge_Base/knowledge_base/Installing/Configuring_the_Session_State_Database_for_Multi-Core_Web_Servers.aspx
) and the export problem was resolved.</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position: absolute; left: -10000px; top: 0px; width:
1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">**B)** Now, i also have a completely different Windows Forms application deployed by ClickOnce deployment(.NET 3.5 SP1). </div> <div style="position: absolute; left: -10000px; top: 0px;
width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">**In this windows application,
i have a form with a WebBrowser control whose URL is the asp.net page mentioned in A above.** </div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position:
absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">Unfortunately, when the reportViewer asp.net page is displayed in the WebBrowser control which is on the windows form and i click the Export
button, i get the error as in A above(`Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired` ).</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"
id="_mcePaste"></div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">When i added the below code to the web.config file of the asp.net application, the problem was
resolved</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x:
hidden; overflow-y: hidden;" id="_mcePaste"> <sessionState mode="SQLServer" sqlConnectionString="server=myServer;UID=User1;PWD=My***d;" </div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y:
hidden;" id="_mcePaste"> cookieless="false" timeout="20" /> </div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position: absolute; left: -10000px;
top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">but now, how can i solve the same issue now in the windows application?</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x:
hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">I have tried adding the same code above in the windows application
app.config file, but this time around, its not working. any help.</div> <div>A) I have an asp.net page with a reportViewer control hosting a report in remote processing Mode.</div><div>Whenever i would tried to export the report to excel or pdf, i could get
the error </div><div>
</div><div>
</div><div> Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired</div><div>
</div><div>I then came across this
http://msdn.microsoft.com/en-us/library/ms178586.aspx and decided to resolve the problem by going with SQL Server Mode sessionState(
http://www.nimbleuser.com/blogs/Knowledge_Base/knowledge_base/Installing/Configuring_the_Session_State_Database_for_Multi-Core_Web_Servers.aspx ) and the export problem was resolved.</div><div>
</div><div>B) Now, i also have a completely different Windows Forms application deployed by ClickOnce deployment(.NET 3.5 SP1). </div><div>
</div><div>In this windows application, i have a form with a WebBrowser control whose URL is the asp.net page mentioned in A above.</div><div>
</div><div>Unfortunately, when the reportViewer asp.net page is displayed in the WebBrowser control which is on the windows form and i click the Export button, i get the error as in A above(`Microsoft.Reporting.WebForms.AspNetSessionExpiredException:
ASP.NET session has expired` ).</div><div>
</div><div>When i added the below code to the web.config file of the asp.net application, the problem was resolved</div><div>
</div><div> <sessionState mode="SQLServer" sqlConnectionString="server=myServer;UID=User1;PWD=My***d;" </div><div> cookieless="false"
timeout="20" /> </div><div>
</div><div>but now, how can i solve the same issue now in the windows application?</div><div>
</div><div>I have tried adding the same code above in the windows application app.config file, but this time around, its not working. any help.</div><div>
</div>
ReportViewerSeession
--------------------------------------------------
Sincerely,
Nick
ASP.NET, SQL Server [Database Engine, SSIS & SSRS],Entity Framework, C# and VB.NET
I might be wrong but just a try ... how about checking the auto refresh check box in the Report Properties. If this is a problem with report session getting expired.
Just try it once.
Regards,
Anish
"Mark this as answer if this post helps you, unmark if it doesnt."
"Mark this post as answer if this post helps you it might help others as well."
Nick Asiimwe
Participant
1459 Points
643 Posts
Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired
Aug 16, 2010 08:04 AM|LINK
<div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">**A)** I have an asp.net page with a reportViewer control hosting a report in remote processing Mode.</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">Whenever i would tried to export the report to excel or pdf, i could get the error </div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"> Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">I then came across this http://msdn.microsoft.com/en-us/library/ms178586.aspx and decided to resolve the problem by going with **SQL Server Mode** sessionState( http://www.nimbleuser.com/blogs/Knowledge_Base/knowledge_base/Installing/Configuring_the_Session_State_Database_for_Multi-Core_Web_Servers.aspx ) and the export problem was resolved.</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">**B)** Now, i also have a completely different Windows Forms application deployed by ClickOnce deployment(.NET 3.5 SP1). </div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">**In this windows application, i have a form with a WebBrowser control whose URL is the asp.net page mentioned in A above.** </div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">Unfortunately, when the reportViewer asp.net page is displayed in the WebBrowser control which is on the windows form and i click the Export button, i get the error as in A above(`Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired` ).</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">When i added the below code to the web.config file of the asp.net application, the problem was resolved</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"> <sessionState mode="SQLServer" sqlConnectionString="server=myServer;UID=User1;PWD=My***d;" </div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"> cookieless="false" timeout="20" /> </div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">but now, how can i solve the same issue now in the windows application?</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"></div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">I have tried adding the same code above in the windows application app.config file, but this time around, its not working. any help.</div> <div>A) I have an asp.net page with a reportViewer control hosting a report in remote processing Mode.</div><div>Whenever i would tried to export the report to excel or pdf, i could get the error </div><div></div><div>
</div><div> Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired</div><div>
</div><div>I then came across this http://msdn.microsoft.com/en-us/library/ms178586.aspx and decided to resolve the problem by going with SQL Server Mode sessionState( http://www.nimbleuser.com/blogs/Knowledge_Base/knowledge_base/Installing/Configuring_the_Session_State_Database_for_Multi-Core_Web_Servers.aspx ) and the export problem was resolved.</div><div>
</div><div>B) Now, i also have a completely different Windows Forms application deployed by ClickOnce deployment(.NET 3.5 SP1). </div><div>
</div><div>In this windows application, i have a form with a WebBrowser control whose URL is the asp.net page mentioned in A above.</div><div>
</div><div>Unfortunately, when the reportViewer asp.net page is displayed in the WebBrowser control which is on the windows form and i click the Export button, i get the error as in A above(`Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired` ).</div><div>
</div><div>When i added the below code to the web.config file of the asp.net application, the problem was resolved</div><div>
</div><div> <sessionState mode="SQLServer" sqlConnectionString="server=myServer;UID=User1;PWD=My***d;" </div><div> cookieless="false" timeout="20" /> </div><div>
</div><div>but now, how can i solve the same issue now in the windows application?</div><div>
</div><div>I have tried adding the same code above in the windows application app.config file, but this time around, its not working. any help.</div><div>
</div>
ReportViewer Seession
Sincerely,
Nick
ASP.NET, SQL Server [Database Engine, SSIS & SSRS],Entity Framework, C# and VB.NET
Nick Asiimwe
Participant
1459 Points
643 Posts
Re: Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired
Aug 18, 2010 06:11 AM|LINK
I would still love to get any help concerning this thread!!!!
Sincerely,
Nick
ASP.NET, SQL Server [Database Engine, SSIS & SSRS],Entity Framework, C# and VB.NET
anishshenoy_...
Member
504 Points
103 Posts
Re: Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired
Sep 01, 2010 03:42 PM|LINK
Hi,
I might be wrong but just a try ... how about checking the auto refresh check box in the Report Properties. If this is a problem with report session getting expired.
Just try it once.
Regards,
Anish
"Mark this as answer if this post helps you, unmark if it doesnt."
http://anishshenoy57.wordpress.com/