I am developed a website using VS Express for Web 2012 with target framework .NET framework 4.0
I am adding a controller using entity framework and i run well in my local computer.
However when i upload it to my hosting, i got this error:
Method not found: 'Void System.Data.Objects.ObjectContextOptions.set_UseConsistentNullReferenceBehavior(Boolean)'.
In my web.config it show that the reference use is Entity Framework 5.0
Do i need to change it to Entity Framework 4.0 (since maybe my hosting doesn't support version 5.0)?
How to update the reference? I am new to .NET MVC and kinda confuse with NuGet things.
Thanks in advance.