restarting IIS solved the same issue in my case. Seems like something fails in IIS. Didn't worth my panic, either.
IIS 7.5, btw.
I had the same issue (MVC 4) under IIS 7. It turned out that the App Pool identity didn't have the correct authorization to the site's path.
You don't have to reset IIS, you can just recycle the app pool.
Today when I renamed the default website, under which my MVC application was hosted, I started getting that error too. But I restarted IIS and the issue was resolved.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With