locked
Asp.Net session has expired in reportviewer control RRS feed

  • Question

  • User-175177222 posted

    Hi,

     I am trying to exceute a report from my asp,net website. The Sql server machine and the webserver are on different computers. When i click on the report viewer button, select the parameters and give View report. The report pops up after some time and then when i go to the next page in the report viewer control i get an error saying Asp.net session has expired.. I have looked everywhere for help but cannot solve this..

     

    Any help will be appreciated.

    Regards,

    Karen

    Wednesday, March 26, 2008 12:14 PM

Answers

  • User-175177222 posted

    i tried that too and still gives the same result

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 27, 2008 9:10 AM

All replies

  • User-345632295 posted

    In your ASP.NET application's web.config, extend the asp.net timeout.

    Wednesday, March 26, 2008 3:19 PM
  • User-175177222 posted

    But i have the default setting on a different server and it works fine??

    Wednesday, March 26, 2008 3:27 PM
  • User-362176076 posted

    In your ASP.NET application's web.config, extend the asp.net timeout.

     I tried extending the my application's session time out-- aren't they separate session instances?? 

    Thursday, March 27, 2008 8:38 AM
  • User-175177222 posted

    i tried that too and still gives the same result

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 27, 2008 9:10 AM
  • User1805008792 posted

    Hi Karen,

    You need to increase the session timeout period of your report server, check this post for details -

    http://blogs.msdn.com/jgalla/archive/2006/10/11/session-timeout-during-execution.aspx

     

    Saturday, March 29, 2008 5:33 AM
  • User-1600963911 posted

    Hi all,

    I had the same problem. After I changed the default InProc Session-State mode to StateServer mode as following, everything has become fine.  My problem has also to do with frame forward.

        <sessionState mode="StateServer"
                      stateConnectionString="tcpip=localhost:42424"
                      cookieless="false"
                      timeout="20"/>
    Wednesday, October 8, 2008 9:30 PM
  • User431126781 posted

     

    Hi zipswich,

    I also changed the Seesion-State mode from InProc to StateServer. Exactly, it worked well. However, when it works in StateServer mode, the url will contain the SessionID, which will take a little confusion. How did you solve this issue?

    Thanks

      

    Sunday, February 15, 2009 9:41 PM
  • User350501019 posted

    Hi All,

    Problem resolved!!! Whenever, I clicked on the nextPage button on the report viewer, I would get an error "ASP.net session has expired".

    Server Error in '/' Application.

    ASP.NET session has expired

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

     




    The problem was an image in the Report. When I took the report to production, I forgot to take the image that was embed in the report. When I uploaded the image to the production server, the report was now able to find the image and everything seemed to work fine.

    Hope this helps.

    Abhishek


    Wednesday, July 22, 2009 5:36 PM
  • User-1113798244 posted

    Thanx zipswich. The Asp.Net StateService is what solved it for me.

    Friday, June 18, 2010 5:34 AM
  • User-870062319 posted

    Hi Zipswich,

    Can you please let me know that in which file you have perform all these changes

    <sessionState mode="StateServer" stateConnectionString="tcpip=localhost:42424" cookieless="false" timeout="20"/>

    as I am also facing the same issue.

    Thanks and Regards,

    Anki

    Wednesday, June 5, 2013 2:04 AM
  • User-1600963911 posted

    Hello Anki,

    It is web.config.

    Wednesday, June 5, 2013 9:22 AM
  • User-870062319 posted

    Hi Hong,

    I have tried to find this in Web.config file but unable to find there. I have search in UI.Components - web config as well as in Business.Components - web config. So what can i do now. Please tell me.

    Regards,

    Anki

    Thursday, June 6, 2013 12:27 AM
  • User-1600963911 posted

    Hi Anki,

    It was almost five years ago.   I am not sure if it is still appllicable to newer asp.net web apps.  Anyway, it is something like the following:

     <system.web>
    <sessionState "StateServer"  
                      stateConnectionString="tcpip=localhost:42424"
                      cookieless="false"
                      timeout="60"/>
    ...
      </system.web>

    Pleaser refer to this document.

    Thursday, June 6, 2013 7:04 AM