**A)** I have an asp.net page with a reportViewer control hosting a report in remote processing Mode.
Whenever i would tried to export the report to excel or pdf, i could get the error
Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired
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.
**B)** Now, i also have a completely different Windows Forms application deployed by ClickOnce deployment(.NET 3.5 SP1).
**In this windows application, i have a form with a WebBrowser control whose URL is the asp.net page mentioned in A above.**
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` ).
When i added the below code to the web.config file of the asp.net application, the problem was resolved
<sessionState mode="SQLServer" sqlConnectionString="server=myServer;UID=User1;P
View Complete Post