I had this problem once before and didn\'t resolve it. I have a list (generated in an MVC3 controller):
ViewBag.Languages = db.Languages .Select(x =>
It can happen as well if the name of your class doesn't match the name of the file (I know it's stupid but it might help you)