Obviously, it is all about adding a reference to System.Data.Entity to my Web project right? I checked and it is already there. Removed it re-added it. Checked for the correct version but still it doesn't like it! Why?
This came about when I used an existing Models project from a different solution in a brand new MVC 2 web application. So I checked the differences between the working solution and the new solution. Both had the same reference in the Web project so what's wrong?
Solution
Finally, I found that I had to add the System.Data.Entity assembly in the web.config too! See line 6 below:<compilation debug="true" targetFramework="4.0"> <assemblies> <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> </assemblies> </compilation>
This miraculously made my page start working as expected again.
Thanks, man! Really helpful
ReplyDeleteBilly headache now gone. Billy happy. Billy love Colin.
ReplyDeleteThanks a lot!
ReplyDeleteIt saved me a lot of time :)
Thanks very much
ReplyDeleteThx!
ReplyDeleteEven the updated MVC3 Tools (release a week or so ago) doesn't fix this - thank you!
ReplyDeleteThx, very very helpfull. Saved me a lot of time
ReplyDeleteThanks Very Very Helpful, Please give the reason for change
ReplyDeleteBecause it makes it work :)
ReplyDeleteI don't know man I wrote this ages ago!
merci!
ReplyDeleteYEAHHHHH !! I LOST 5 HOURS of time but You get STOP Frustation man, THANKS
ReplyDeletethanks alot
ReplyDeleteThanks man!!!!!
ReplyDeleteThanks Man...it really worked..
ReplyDeleteThanks man!
ReplyDeleteJust saved me from a few hours of trouble shooting! Thanks much!
ReplyDeleteThank you very much it saved my time.
ReplyDeletethank you
ReplyDeletethanks!
ReplyDeleteThank man, it's work :)
ReplyDeleteThanks! =)
ReplyDeleteWow - thanks. This really stumped me.
ReplyDeleteThanks!
ReplyDeleteThanks it worked.....
ReplyDeleteSandesh Daddi
Thanks, worked!!
ReplyDeleteTHANKS!!!
ReplyDeletethanks, helpful
ReplyDeleteThanks man!!!
ReplyDeleteThough in web.config I have the tag :
ReplyDeleteStill I cannot access DbContext from System.Data.Entity namespace
Any idea ?
Thanks you very much !!! I from Viet Nam :)
ReplyDeleteMethod not found: 'System.Data.Entity.Core.Objects.ObjectResult`1 FYPDAL.FYPEntities.SP_GetProjectStudentsWithReg(System.Nullable`1)'
ReplyDeletethe error occurs where a store procedure is called
I have updated edmx file in my EF project but all store procedures are not working
ReplyDeleteSystem.MissingMethodException: Method not found: 'System.Data.Entity.Core.Objects.ObjectResult
this error displayed when I run project
It turns out that even the hottest port has a few places where you can get off the beaten path. Here are some recommendations that will make you feel like you're in the know vpn guide
ReplyDeleteInteresting post. I Have Been wondering about this issue. so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks vpn netflix
ReplyDeleteI might want to thank you for the endeavors you have made in composing this article. I am trusting the same best work from you later on too.. https://thebestvpn.uk
ReplyDeletePersons appreciate shopping for amazing, appealing, fascinating and from time to time attractive aromas for them selves and pertaining to others. This can be executed conveniently along with inexpensively in an on-line perfume shop. lemigliorivpn.com
ReplyDeletePermainan slot yang paling banyak diminati oleh semua orang, tentunya disitus kami dengan permainan slot terlengkap, pastinya akan membuat kalian betah permainan slot apa yang kalian dulu mainkan tentunya akan ada disini. silahkan kunjungi situs kami
ReplyDeletelivechat vivo slot
livechat agen winpalace88
livechat slot vivo
livechat vivo resmi
livechat vivo indonesia
cara login vivo slot
link login slot vivo
download aplikasi vivo slot
vivoslot deposit pulsa
vivo slot deposit pulsa
vivo slot deposit via pulsa xl
vivo slot deposit via pulsa telkomsel
slot vivo deposit pulsa
slot vivo deposit pulsa xl
slot vivo deposit pulsa telkomsel
deposit slot pakai pulsa telkomsel
agen resmi slot vivo
cara withdaw vivo slot
withdraw slot vivo indonesia
agen slot deposit via pulsa