TL; DR:
I encountered the same error. This is because the client repeatedly called the WCF service, where the method called itself recursively, thereby throwing a StackOverflowException .
Long answer:
This happened in the WCF application using .Net 4.5 . All of our services ( .svc s) started crashing one by one until the entire application pool started reporting HTTP 503 error. The application pool was dead.
Digging through the application logs and then the EventViewer logs, we found the same message as the OP.
For some time, we continued to restart the application pool, but after a while it will work again.
The application pool suddenly stabilized at 2 p.m., and we have some kind of system operation that starts noon until 2 p.m. ... We figured that this should be connected with this. We were able to discover that this was due to a merge error when a method that retains a call to itself recursively had no parameters or return type. This probably threw a StackOverflowException so that the application pool failed.
RMalke
source share