IIS random(?) application shutdown

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
PhotoCompManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

grayeCommented:
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"
0
PhotoCompManagerAuthor Commented:
I've checked the app pool - it is unlimited and there's > 1GB of main memory available
0
grayeCommented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PhotoCompManagerAuthor Commented:
Now working with Micorsoft support on this
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.