Visual Studio 2017 - ASP.NET changes to .cshtml are not being reflected

Viewed 247

I have an ASP.NET application that was working fine yesterday. Suddenly, changes made to .cshtml files are not being reflected on the IIS Express server. I have done the following:

  • Restarted the computer
  • Clear the cache on the browser and disabled cache (while DevTools is open)
  • I uninstalled and reinstalled IIS Express
  • Changed code in other files
  • Have Visual Studio running with admin privileges
  • Used Ctrl + F5 to force changes in the browser

However, none of these steps have solved the problem. Any ideas?

Thanks.

1 Answers

Turns out I was making changes in a temporary version of the file. Once I started editing the actual file, changes were reflected on the IIS Express server.

Thank you everyone for your help!

Related