In my case problem occurred after namespace renaming. I didn't use external tool like Re-sharper, I did renaming manually.
In that process, Views/Web.config file was left unchanged. After replacing old namespace name with the new one in this file, the error disappeared.