I am having this frustrating problem. I change text in a razor view (cshtml), Start without Debugging
, refresh (Ctrl+F5) the browser but nothing happens. The st
Here's what seems to be happening under the hood: the .net framework compiles your razor into a machine-form (DLL) and executes this. It then monitors your web folder to watch for changes, and when it detects changes, it re-compiles your razor and executes the new DLL.
In your case something seems to fail related to the monitoring file-changes. It still works on a full restart, because then compiling happens even without file-change detection. Common reasons are:
To confirm that this is the issue, I recommend just editing the web.config (add/remove a character) and see if then the reload is successful - just to prove it's a re-compile issue and not a visual-studio-debugging issue. Assuming this is the case, and assuming it's not a NAS, I would recommend to temporarily give the folder a "everyone - everything" permission to see if it works then, and then gradually reduce the permissions again to where you want them.