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.
Rate this post:
Comments
There are no comments yet. Be the first to leave a comment!