Page view counter

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
    • Loading...
    • tommorgan
    • Joined on 03-04-2008, 10:49 AM
    • Posts 4
    • Points 0

    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
    • Loading...
    • anas
    • Joined on 09-21-2006, 4:31 AM
    • Ramallah, Palestine
    • Posts 6,112
    • Points 48,363
    • 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.


    Note:Please Don't hesitate to click "Alert Moderators" link if you noticed something wrong on the forums (like duplicate ,Off-topic,offensive,or any post that violates the website "TERMS OF USE"). -- Thanks!

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

    04-14-2008, 1:43 PM
    • Loading...
    • tommorgan
    • Joined on 03-04-2008, 10:49 AM
    • Posts 4
    • Points 0

    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
    • Loading...
    • nishanthnair
    • Joined on 11-08-2005, 5:50 AM
    • India
    • Posts 302
    • Points 1,684

    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
    • Loading...
    • tommorgan
    • Joined on 03-04-2008, 10:49 AM
    • Posts 4
    • Points 0

    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
    • Loading...
    • lad.bhavesh
    • Joined on 06-14-2007, 7:10 AM
    • Posts 106
    • Points 413

    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
    • Loading...
    • tommorgan
    • Joined on 03-04-2008, 10:49 AM
    • Posts 4
    • Points 0

    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)