User839733648 posted
Hi samrecd,
According to your description, I have some confusion.
I am using Memory Cache to store objects in the memory, I am using asp.net web-api (Framework - 4.6.1).
How do you use Memory Cache? Could you share the related codes?
Sometimes it's throwing the exception - Attempted to divide by zero. StackTrace: at System.Runtime.Caching.MemoryCacheStatistics.SetTrimStats and crashing the app pool
You say sometimes, could you describe in detail that in which condition does the exception happen?
And could you share the detailed StackTrace information so that it may be easier for us to help you?
Best Regards,
Jenifer