"500 - Internal Server error."

I am running an IIS website on a 2012 R2 server that serves all static pages.  The first request to the server returns a "500 - Internal Server error.  There is a problem with the resource you are looking for, and it cannot be displayed."  Refreshing the browser and all future requests return pages as expected.  This also happens if it has been a while since the last page request.  (20 to 30 minutes)  I suspect a timer of some kind but cannot find it anywhere.  Is  this a known issue?  (Hopefully with a known solution.)
IndwesAdminAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Rich WeisslerProfessional Troublemaker^h^h^h^h^hshooterCommented:
If you look in the Windows Event Viewer, for the Applications log... do you see events which indicate that the application pool has been stopped due to inactivity?
If that does track with the problem... I'd be suspicious that the pages aren't really static, that there is some active content.

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
IndwesAdminAuthor Commented:
Thank you.  I will double check the actual pages.
IndwesAdminAuthor Commented:
No.  Any pages that would have dynamic content are built by a separate application and deposited into the website as static pages.  Also, the default page is an index.html page and has nothing but static content.  (Just "double-double checked" and confirmed that this is the case.)  The initial directory being checked for pages is configured as a virtual directory rather than an application.  I am thinking that the virtual directory does not rely on the application pool?
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

Rich WeisslerProfessional Troublemaker^h^h^h^h^hshooterCommented:
Do you have any handler mappings set on the website?
Any messages appearing in the System or Application Event Log?  (Especially the Application Event Log.)
IndwesAdminAuthor Commented:
I don't believe I have any handlers set for that website but I will check to confirm that and update my posting.
IndwesAdminAuthor Commented:
I stand corrected there are 3 handlers for the website that are inherited form the IIS parent settings.  They are OPTIONSVerbHandler, TRACEVerbHandler, and static file.  They are all set to the defaults for the IIS implementation in general.  I am not sure why any of them would reject only the first requested and then grant following requests.  I am still suspecting a timeout of some sort but can't identify it.
IndwesAdminAuthor Commented:
Checking the event log was productive in analyzing the problem.
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
Windows Server 2012

From novice to tech pro — start learning today.