i got a error in mvc 4
Error 1 Cannot convert lambda expression to type 'string' because it is not a delegate type
what is this error
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Posted Feb 17, 2015, 12:21 AM EST
Prasham SabadraRank #116 · 19.3K reputationPosted Feb 17, 2015, 12:23 AM EST
I didnt tried but have a look once at http://forums.asp.net/t/1817464.aspx?Cannot+convert+lambda+expression+to+type+string+because+it+is+not+a+delegate+type
Jignesh TrivediRank #16 · 50.3K reputationPosted Feb 17, 2015, 2:35 AM EST
Hi,
I think there is isuue with EF referance...
try..
public ActionResult Index()
{
var tbl_student = db.tbl_Student.Include("tbl_User");
return View(tbl_student.ToList());
}
hope this will help you.