ASP.NET Session has expired, why ?

Hi,

I have an aspx with report inside, in the ide (VWD) I can see the page and the report with data on it.

When I deploy the page on the web srv I can see the page but without

data on the report, instead I see one error inside the report, the error is:

"ASP.NET Session has expired"

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

Maybe ther is something to set in the ObjectDataSource wich I use as

datasource of the ReportViewer

I don't know any more wath to do, please if somebody had same

problem, please help me.

Gioking

 

 

 

 




Answer this question

ASP.NET Session has expired, why ?

  • Marcus Rodrigues

    Where do I make the change IIS or my Code

    Thanks in advance,

    AL


  • BobTheBuild

    If your webserver name contains "_" you will see this weird error. Try http://IPAddress/AppName.

    I had the similar error and this fixed it.


  • elixic

    Are you using cookieless sessions There is a known bug with the viewer in when ASP.Net is set to use cookieless sessions.
  • megadith31

    No, I am not using cookieless sessions.
  • Kandisa

    Hi Brian,

    The problem is most likely that you are using in-proc session state (the default). When you use in-proc session and have two worker processes, each one has its own independent version of session. As a result, if a request for the aspx page is routed to one worker process, but the request for the report content goes to the other process, the second request will not find a session and assume it has expired, generated the error you see. The two ways to work around this are to either use only a single worker process or to use out-of-proc session state, such as SQL Server. See this article for more details: http://msdn2.microsoft.com/en-us/library/ms178586.aspx

    We found your answer to the problem, but we have OutProc Session State then also this error is ocurring,

    See the below error detail. Please can you help me with below error what could be the problem even after having Out-Process Session state

    Error Details :

    ASP.NET session has expired

    Source : Microsoft.ReportViewer.WebForms

    Stack Information : at Microsoft.Reporting.WebForms.ReportDataOperation..ctor() at Microsoft.Reporting.WebForms.HttpHandler.GetHandler() at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Target Site : Void .ctor()

    QueryString Data:
    ----------------------------------
    ReportSession: 4dak3r55ukr1xnakneeuia45 ControlID: 4c5fbe73-d8f7-4ae4-804b-5ea01e147e5c Culture: 1033 UICulture: 1033 ReportStack: 1 OpType: ReportArea Controller: ClientControllerctl00_m_cphAcc_m_rvProgressReportLearner PageNumber: 1 ZoomMode: Percent ZoomPct: 100 ReloadDocMap: true EnableFindNext: False LinkTarget: _top

    Post Data:
    ----------------------------------


    Server Variables Data:
    ----------------------------------
    ALL_HTTP: HTTP_CONNECTION:Keep-Alive HTTP_ACCEPT:*/* HTTP_COOKIE:ASP.NET_SessionId=2cedre55dfjnfnubg0ejheeg; Farm=none; frmLogin=875DEA334948A47AE568A75585B08FE8B82FEAD4DBD9BEB7B96FC22506D8ABB7977376A7A3AED611540CF0758592911F7BF8A76F0A185A7BCF6AE9CFA7DB596F0D034AA50C254E0187AF183123436B45950FD
    Timestamp: 10/2/2007 9:18:21 PM Message: Error Log Description :



    ----------------------------------


    Error Details :

    ASP.NET session has expired

    Source : Microsoft.ReportViewer.WebForms

    Stack Information : at Microsoft.Reporting.WebForms.ReportDataOperation..ctor() at Microsoft.Reporting.WebForms.HttpHandler.GetHandler() at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Target Site : Void .ctor()

    QueryString Data:
    ----------------------------------
    ReportSession: 4dak3r55ukr1xnakneeuia45 ControlID: 4c5fbe73-d8f7-4ae4-804b-5ea01e147e5c Culture: 1033 UICulture: 1033 ReportStack: 1 OpType: ReportArea Controller: ClientControllerctl00_m_cphAcc_m_rvProgressReportLearner PageNumber: 1 ZoomMode: Percent ZoomPct: 100 ReloadDocMap: true EnableFindNext: False LinkTarget: _top

    Post Data:
    ----------------------------------


    Server Variables Data:
    ----------------------------------
    ALL_HTTP: HTTP_CONNECTION:Keep-Alive HTTP_ACCEPT:*/* HTTP_COOKIE:ASP.NET_SessionId=2cedre55dfjnfnubg0ejheeg; Farm=none; frmLogin=875DEA334948A47AE568A75585B08FE8B82FEAD4DBD9BEB7B96FC22506D8ABB7977376A7A3AED611540CF0758592911F7BF8A76F0A185A7BCF6AE9CFA7DB596F0D034AA50C254E0187AF183123436B45950FDBF2863805E017258495C195CF25; ASPSESSIONIDSSRDCDDQ=HELGPLJAICFFDEGFFDFABNBP; ASPSESSIONIDCSTDSBSD=PDMEPLJACGONGPPJIENIJAKB; ASPSESSIONIDQQSCDDDR=LPAHMMJALOOOBIOJPOOCECLE HTTP_HOSTStick out tonguele.platoweb.com HTTP_REFERER:http://ple.platoweb.com/Reserved.ReportViewerWebControl.axd OpType=DocMapReport&ClientController=ClientControllerctl00_m_cphAcc_m_rvProgressReportLearner&ReportUrl=%2fReserved.ReportViewerWebControl.axd%3fReportSession%3d4dak3r55ukr1xnakneeuia45%26ControlID%3d4c5fbe73-d8f7-4ae4-804b-5ea01e147e5c%26Culture%3d1033%26UICulture%3d1033%26ReportStack%3d1%26OpType%3dReportArea%26Controller%3dClientControllerctl00_m_cphAcc_m_rvProgressReportLearner%26PageNumber%3d1%26ZoomMode%3dPercent%26ZoomPct%3d100%26ReloadDocMap%3dtrue%26EnableFindNext%3dFalse%26LinkTarget%3d_top HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
    ALL_RAW: Connection: Keep-Alive Accept: */* Cookie: ASP.NET_SessionId=2cedre55dfjnfnubg0ejheeg; Farm=none; frmLogin=875DEA334948A47AE568A75585B08FE8B82FEAD4DBD9BEB7B96FC22506D8ABB7977376A7A3AED611540CF0758592911F7BF8A76F0A185A7BCF6AE9CFA7DB596F0D034AA50C254E0187AF183123436B45950FDBF2863805E017258495C195CF25; ASPSESSIONIDSSRDCDDQ=HELGPLJAICFFDEGFFDFABNBP; ASPSESSIONIDCSTDSBSD=PDMEPLJACGONGPPJIENIJAKB; ASPSESSIONIDQQSCDDDR=LPAHMMJALOOOBIOJPOOCECLE Host: ple.platoweb.com Referer: http://ple.platoweb.com/Reserved.ReportViewerWebControl.axd OpType=DocMapReport&ClientController=ClientControllerctl00_m_cphAcc_m_rvProgressReportLearner&ReportUrl=%2fReserved.ReportViewerWebControl.axd%3fReportSession%3d4dak3r55ukr1xnakneeuia45%26ControlID%3d4c5fbe73-d8f7-4ae4-804b-5ea01e147e5c%26Culture%3d1033%26UICulture%3d1033%26ReportStack%3d1%26OpType%3dReportArea%26Controller%3dClientControllerctl00_m_cphAcc_m_rvProgressReportLearner%26PageNumber%3d1%26ZoomMode%3dPercent%26ZoomPct%3d100%26ReloadDocMap%3dtrue%26EnableFindNext%3dFalse%26LinkTarget%3d_top User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
    APPL_MD_PATH: /LM/W3SVC/199092251/Root
    APPL_PHYSICAL_PATH: D:\PLE\PhoenixWeb\
    AUTH_TYPE: Forms
    AUTH_USER: brittanygeyer
    AUTH_PASSWORD:
    LOGON_USER:
    REMOTE_USER: brittanygeyer
    CERT_COOKIE:
    CERT_FLAGS:
    CERT_ISSUER:
    CERT_KEYSIZE:
    CERT_SECRETKEYSIZE:
    CERT_SERIALNUMBER:
    CERT_SERVER_ISSUER:
    CERT_SERVER_SUBJECT:
    CERT_SUBJECT:
    CONTENT_LENGTH: 0
    CONTENT_TYPE:
    GATEWAY_INTERFACE: CGI/1.1
    HTTPS: off
    HTTPS_KEYSIZE:
    HTTPS_SECRETKEYSIZE:
    HTTPS_SERVER_ISSUER:
    HTTPS_SERVER_SUBJECT:
    INSTANCE_ID: 199092251
    INSTANCE_META_PATH: /LM/W3SVC/199092251
    LOCAL_ADDR: 10.250.1.153
    PATH_INFO: /Reserved.ReportViewerWebControl.axd
    PATH_TRANSLATED: D:\PLE\PhoenixWeb\Reserved.ReportViewerWebControl.axd
    QUERY_STRING: ReportSession=4dak3r55ukr1xnakneeuia45&ControlID=4c5fbe73-d8f7-4ae4-804b-5ea01e147e5c&Culture=1033&UICulture=1033&ReportStack=1&OpType=ReportArea&Controller=ClientControllerctl00_m_cphAcc_m_rvProgressReportLearner&PageNumber=1&ZoomMode=Percent&ZoomPct=100&ReloadDocMap=true&EnableFindNext=False&LinkTarget=_top
    REMOTE_ADDR: 205.173.47.254
    REMOTE_HOST: 205.173.47.254
    REMOTE_PORT: 27196
    REQUEST_METHOD: GET
    SCRIPT_NAME: /Reserved.ReportViewerWebControl.axd
    SERVER_NAME: ple.platoweb.com
    SERVER_PORT: 80
    SERVER_PORT_SECURE: 0
    SERVER_PROTOCOL: HTTP/1.0
    SERVER_SOFTWARE: Microsoft-IIS/6.0
    URL: /Reserved.ReportViewerWebControl.axd
    HTTP_CONNECTION: Keep-Alive
    HTTP_ACCEPT: */*
    HTTP_COOKIE: ASP.NET_SessionId=2cedre55dfjnfnubg0ejheeg; Farm=none; frmLogin=875DEA334948A47AE568A75585B08FE8B82FEAD4DBD9BEB7B96FC22506D8ABB7977376A7A3AED611540CF0758592911F7BF8A76F0A185A7BCF6AE9CFA7DB596F0D034AA50C254E0187AF183123436B45950FDBF2863805E017258495C195CF25; ASPSESSIONIDSSRDCDDQ=HELGPLJAICFFDEGFFDFABNBP; ASPSESSIONIDCSTDSBSD=PDMEPLJACGONGPPJIENIJAKB; ASPSESSIONIDQQSCDDDR=LPAHMMJALOOOBIOJPOOCECLE
    HTTP_HOST: ple.platoweb.com
    HTTP_REFERER: http://ple.platoweb.com/Reserved.ReportViewerWebControl.axd OpType=DocMapReport&ClientController=ClientControllerctl00_m_cphAcc_m_rvProgressReportLearner&ReportUrl=%2fReserved.ReportViewerWebControl.axd%3fReportSession%3d4dak3r55ukr1xnakneeuia45%26ControlID%3d4c5fbe73-d8f7-4ae4-804b-5ea01e147e5c%26Culture%3d1033%26UICulture%3d1033%26ReportStack%3d1%26OpType%3dReportArea%26Controller%3dClientControllerctl00_m_cphAcc_m_rvProgressReportLearner%26PageNumber%3d1%26ZoomMode%3dPercent%26ZoomPct%3d100%26ReloadDocMap%3dtrue%26EnableFindNext%3dFalse%26LinkTarget%3d_top
    HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)




    Category: Error Priority: -1 EventId: 0 Severity: Information Title: Machine: PHXSDWEB07 Application Domain: /LM/W3SVC/199092251/Root-1-128357357731280316 Process Id: 4204 Process Name: c:\windows\system32\inetsrv\w3wp.exe Win32 Thread Id: 4088 Thread Name:



  • selva_kumar

    Thank you very much for your answer. That's exactly our case!

    It's help us a lot



  • RajaGanapathy

    Hi,

    I am getting the same error message 'ASP.NET Session has expired' and in my case, the report server is configured in a load balanced mode and I am using a virtual ip to connect.

    I believe my issue will get rectified once I implement a sticky session can some one tell me how to configure this in a report server

    Regards,

    Dinesh


  • DigitalMan2112a

    The problem is most likely that you are using in-proc session state (the default). When you use in-proc session and have two worker processes, each one has its own independent version of session. As a result, if a request for the aspx page is routed to one worker process, but the request for the report content goes to the other process, the second request will not find a session and assume it has expired, generated the error you see. The two ways to work around this are to either use only a single worker process or to use out-of-proc session state, such as SQL Server. See this article for more details: http://msdn2.microsoft.com/en-us/library/ms178586.aspx
  • mccpres

    This problem is beacuase animated tag names are too large.
  • davygrvy

    Hi ,

    We are encountering the same issue in our project.. Could you please explain what animated tag names are and how can we solve this issue.

    Many Thanks.

    Shikha



  • AlexDcosta

    Brian Hartman - MSFT wrote:
    Are you using cookieless sessions There is a known bug with the viewer in when ASP.Net is set to use cookieless sessions.



    Hi Brian , Can you please explain where is this cookieless session configuration

    I haven't defined anything like that anywhere but would like to check if it helps , Altough changing the name to ip again worked but Now in another context i'm running into the same problem and would love to solve it once and for all hopefully without changing my computer's name..

  • mumle

    I've had this too and changing the server name to ip address helped too but hey this is a quite critical error , took me about half of day figuring out why it didn't work and was lucky to find this artical , Is this maybe fixed with service pack of something If not i think microsoft should fix it asap.

  • a3b2c1r46

    I have also the same trouble.

    For the moment I have corrected this in IIS6 :

    For application pool, in properties, I have put maximum worker processes to 1 (previously I had 2)

    Response time are a little longer but it works....

    Now I try to understand where does come from this problem.



  • ASP.NET Session has expired, why ?