I have a Core MVC site that I'm developing and publishing to IIS 8 on Win 2012. The siteworks fine 99% of the time, but occasionally starts throwing 500 0 responses until I restart the site in IIS.
- The 500 0 is in response to both static and MVC requests.
- The IIS Logs are no help - the site is 200's one second then 500 0 after that.
- The Event Viewer shows no errors or anything to suggest what's happening
- Failed Request Tracing just shows AspNetCoreModule / EXECUTE_REQUEST_HANDLER / The operation completed successfully. (0x0)
- The GENERAL_RESPONSE_ENTITY_BUFFER inside Failed Request Trace shows the content that should have been delivered.
- Stop / Start of the website in IIS fixes it.
I am confused because as I said the site works 99% of the time. The buffer in the trace suggests Kestrel might be doing its part, but I cannot determine why IIS doesn't want to cooperate.
Can someone give me an idea of what to look for to resolve this?