I faced this issue in Visual Studio, and here's what worked for me: The issue seemed to be caused by a caching problem in Visual Studio or IIS Express.
-> Restarting the system resolved it for me.
After the restart, I was able to run the project without any issues. This method worked in my case.