web hosting publishing issue get Method not found: 'Void System.Data.Objects.ObjectContextOptions.set_UseConsistentNullReferenceBehavior(Boolean)'

StackOverflow https://stackoverflow.com/questions/22179235

  •  05-06-2023
  •  | 
  •  

سؤال

I had publish my project to the web server and its get

Method not found: 'Void System.Data.Objects.ObjectContextOptions.set_UseConsistentNullReferenceBehavior(Boolean)'.

May I know I'm using my target framework to 4.0 but the entity framework is 5.0 will cause this kind of issue?

هل كانت مفيدة؟

المحلول

Change your project's Target Framework to .Net 4.0, then re-install EF from NuGet.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top