When I upload changes to my shared hosting provider some cshtml files update fine and I can see the changes, but some do not. They seem to be stuck and won't recompile on the server.
The problem files are suspiciously all in the same folder.
If I delete the updated file I get a 404 error as expected but even when I reupload the file I see the old version in my browser.
I download the file and checked that it was the right version, which it is.
I also tried renaming the folder in case it was a reserve folder name, but no change.
I have tried recycling application pool, restarting site and changing web.config to force it to update but nothing works. I also tried various options for fcnMode in web.config but no change. It is shared hosting so I can't restart the server or IIS.
The only thing that worked for me was moving the files to a different existing folder. That seemed to work but I don't know why.
by John Avis | November 27, 2019
How to avoid A potentially dangerous Request.Form value was detected from the client errors when developing in ASP.NET Web Pages.
by John Avis | July 17, 2013
ASP.NET Web Pages has a simple to use Namespace that help you open, query and send commands to a database, and to work with rows that are returned by SQL queries.