asp.net-mvciiscachingiis-10windows-server-2019

IIS serving old CSHTML file even after clearing many caches


We are deploying an ASP.NET Framework MVC web application to an on-premises Windows server 2019 data center running IIS 10.0. We’ve previously deployed this same application to an on-premises Windows 2012 server running IIS 7.5 without any issues. However, since migrating to the new server, changes to a specific CSHTML file are not reflected in the running website.

Details

We are currently corresponding with a Microsoft consultant, but even they are stumped thus far. Any ideas are appreciated.

What we’ve tried thus far

After each of these attempts, the server continued to serve the old CSHTML file.


Solution

  • Solution

    As it turns out, the admins can override the content of webpages so they don't have to open tickets when they need grammar- or other small changes. Whenever requests were made to the /cms/about route, the app saw the content override, then rendered that instead of /cms/about.aspx. We resolved the issue by modifying the overriding content.