i also faced same problem,
Reason: why i faced this error is, rather then creating new partial view, i have created class and then renamed its extension from ".cs" to ".cshtml".
Solution: Just delete that rename view and re-create proper partial/full view. it will work fine after that.