I have an asp.net MVC 5 framework that runs a bunch of sites and we have an issue where as the site runs for a few days(sometimes even hours), it begins to error about being able to load views (The partial view ~/Views/Comment/ExtraHeaders.ascx
was not found or no view engine supports the searched locations the following locations were searched).
The error also occasionally says "The file '/Views/Cobalt/Shared/Error.aspx' has not been pre-compiled, and cannot be requested" This view file is also definitely there
We do precompile the views before deploying. This error persists after an app restart, but goes away when redeploying the code. Any ideas about how to debug the underlying problem?
I am going to try and do a byte by byte comparison of every file the next time it happens to see if maybe some corruption is happening?