Session Expired, Application is shutting down. Reason: Unknown.

Last post 04-18-2008 5:17 PM by tommorgan. 6 replies.

Sort Posts:

  • Crying [:'(] Session Expired, Application is shutting down. Reason: Unknown.

    04-14-2008, 10:53 AM
    • Member
      point Member
    • tommorgan
    • Member since 03-04-2008, 10:49 AM
    • Posts 4

    The Problem:  Users are reporting getting session expired messages. 

    We are logging application events using the ASP.NET 2.0 Health Monitoring, and we are getting this event each time the users are reporting session expired:

    Event Type: Information
    Event Source: ASP.NET 2.0.50727.0
    Event Category: Web Event
    Event ID: 1305
    Date:  4/1/2008
    Time:  12:04:59 PM
    User:  N/A
    Computer: xxxxxxxx
    Description:
    Event code: 1002
    Event message: Application is shutting down. Reason: Unknown.
    Event time: 4/1/2008 12:04:59 PM
    Event time (UTC): 4/1/2008 4:04:59 PM
    Event ID: b33dd75936e540269ffaa87c411ac7b9
    Event sequence: 735
    Event occurrence: 1
    Event detail code: 50001
     
    Application information:
        Application domain: xxxx
        Trust level: Full
        Application Virtual Path: /xxxxx 
        Application Path: xxx
        Machine name: xxxx
     
    Process information:
        Process ID: 5328
        Process name: w3wp.exe
        Account name: NT AUTHORITY\NETWORK SERVICE
     
    Custom event details:

     

    Some information deleted above (xxx). 

    Our code checks to see if the user has a user id in a session variable, and if not found, sends them to a login page.

    Any idea why this is happening?  How might I find out what is actually the error?  I've done a search for "Application is shutting down. Reason: Unknown.", and gotten nothing.

    R,

    TPM

  • Re: Session Expired, Application is shutting down. Reason: Unknown.

    04-14-2008, 12:45 PM
    • All-Star
      58,127 point All-Star
    • anas
    • Member since 09-21-2006, 8:31 AM
    • Palestinian Territory, Occupied
    • Posts 6,657
    • Moderator

    In general , the Unknow reason comes from the fact that the Applcaition is restarting ..

    this can be happened for many reasons ,

    like modifiyinh Bin directory or web.config, global applciation file , ...

    so make sure there is no modifications in that places ,,, if you have antivirus program ,,, this can be  the reason ...

    please read: http://forums.asp.net/t/1173015.aspx

    Regards,

    Anas Ghanem | Blog

  • Re: Session Expired, Application is shutting down. Reason: Unknown.

    04-14-2008, 1:43 PM
    • Member
      point Member
    • tommorgan
    • Member since 03-04-2008, 10:49 AM
    • Posts 4

    Sorry, I've checked the virus scanner and other issues.  The error should not be "Unknown" in that case anyway, from what I've read it should be "configuration changed".

    We are running ASP.NET 2.0 version 2.0.50727.832 - we will try to update to SP1 tonight to see if the issue goes away.

    R,

    TPM

  • Re: Session Expired, Application is shutting down. Reason: Unknown.

    04-15-2008, 12:55 PM
    • Participant
      1,696 point Participant
    • nishanthnair
    • Member since 11-08-2005, 5:50 AM
    • India
    • Posts 303

    Did you try hosting the application in a seperate app pool that is created only for this application?

    Sometimes this might fix the issue.

    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.

    http://blog.nishanthnair.com
  • Re: Session Expired, Application is shutting down. Reason: Unknown.

    04-15-2008, 1:51 PM
    • Member
      point Member
    • tommorgan
    • Member since 03-04-2008, 10:49 AM
    • Posts 4

    Thanks, I will try hosting in a separate app pool. The server is hosting two site with the same app pool, but very few (under 100) users.

    I did update to ASP.NET 2.0 SP 1 (Build 1433) and I still have the application shutdown with unknown reason.

    TPM

  • Re: Session Expired, Application is shutting down. Reason: Unknown.

    04-17-2008, 12:40 PM
    • Member
      413 point Member
    • lad.bhavesh
    • Member since 06-14-2007, 7:10 AM
    • Posts 106

    You might be running Asp.net 2.0 and asp.net 1.1 applications under same application pools. Because of this, application is restaring.

    Try to consolidate you app pool for diff. net version.

    Hope this will resolve your issue.

     

    Cheers

    Bhavesh

  • Smile [:)] Re: Session Expired, Application is shutting down. Reason: Unknown.

    04-18-2008, 5:17 PM
    Answer
    • Member
      point Member
    • tommorgan
    • Member since 03-04-2008, 10:49 AM
    • Posts 4

    Nope, sorry, that not it.  We are running only ASP.NET 2.0 apps.

    However, I believe I have found the fix.  We were creating and deleting files farther down in the application directory tree.  All the file changes we think caused the application pool to exit with the "unknown" reason.

     We applied this registry fix described here: http://support.microsoft.com/kb/911272/

    Set HKLM\Software\Microsoft\ASP.NET\FCNMode to 1.  Create FCNMode as a DWORD if it doesn't exist.  Up two days now so far without any restarts.

     

Page 1 of 1 (7 items)