0

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.

Crystal
  • 21
  • 2
  • Maybe you need to update your EF4 to new version – Ehsan Akbar Apr 06 '14 at 08:26
  • try this one:http://stackoverflow.com/questions/9591929/can-anyone-spot-why-i-keep-getting-this-error-testing-the-ef-5-beta – Ehsan Akbar Apr 06 '14 at 08:28
  • Hi E A, it's solved using similar method as explained in the link you provide i remove the the reference using Manage NuGet package and reinstalled it again. and make sure my web.config update into something like this: – Crystal Apr 16 '14 at 16:44

0 Answers0