In a MVC2 project I moved a file from App_code to Content folder and compiled it. Then move it back again to App_Code and then changed its Build Action to \"Compile\". Now I
In my case I got this error when I had mistakenly named a class the same as the class it was inheriting from.