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.
href
attribute of an anchor tag. When examining the file in the browser, it does not use the updated href
./views/cms/about.cshtml
/views/home/about.cshtml
CmsController
actions (About
, Foo
, and Bar
), we've successfully changed the deployed behavior for /cms/foo
and /csm/bar
, but not /cms/about
, so the About
action isn't being invoked; thus, IIS appears to be caching the result of the /cms/about route, not the /Views/Cms/About.cshtml fileWe are currently corresponding with a Microsoft consultant, but even they are stumped thus far. Any ideas are appreciated.
Temporary ASP.NET Files
folder does not resolve the issue.After each of these attempts, the server continued to serve the old CSHTML file.
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.