IIS random(?) application shutdown

Posted on 2011-10-05
Last Modified: 2012-06-27
I trap the Application close event in Global.asax, and it reports that it keeps being closed with
ApplicationShutdownReason.HostingEnvironment (which I understand to be normal "idle" practice) or BinDirChangeOrDirectoryRename
Needless to say, I don't change the bin directory.
Both of these happen whens sessions are active and so the application and session variables are reset, with the effect that active users crash.

This happens randomly 10 times a day or more

Do you have any idea why this is happening, or can you suggest how I might diagnose the problem?

 have looked at the machine Application and Windows event logs but I can't see anything happening at the same timeI
Question by:PhotoCompManager
    LVL 41

    Expert Comment

    I'd be looking at the size and configuration of the "application pool"

    You didn't mention which version of IIS you're using so I can't give you an exact link to look at.  However, you should be able to google it with something like this:

    "IIS 7 application pool"

    Author Comment

    I've checked the app pool - it is unlimited and there's > 1GB of main memory available
    LVL 41

    Accepted Solution

    OK, then check the event logs for things related to IIS and the App Pool (I'm still thinking it's related to the App Pool)

    Whenever you post changes to your web site and the contents of the bin directory change, you'll get that shutdown (and restart) event.

    Author Closing Comment

    Now working with Micorsoft support on this

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
    Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now