i always get this error when i issue this command
http://localhost:19572/api/courses this method is generating the exception
public IQueryable GetAllCourses(){return _ctx.Courses.Include(“CourseSubject”).Include(“CourseTutor”).AsQueryable();}
‘System.Data.Entity.Core.ProviderIncompatibleException’ occurred in EntityFramework.dll but was not handled in user code
Additional information: An error occurred while getting provider information from the database. This can be caused by Entity Framework using an incorrect connection string. Check the inner exceptions for details and ensure that the connection string is
correct.
and when i inspect the JASON element in my fiddler i always get this
ExceptionMessage=The system cannot find the file specified
ExceptionType=System.ComponentModel.Win32Exception
Message=An error has occurred.
and i am using entity framework 6.0.1 i tried 5 but it didn't work i have problems with connection string i have SQL server on my machine
and here is the connection string
public LearningContext() : base("eLearningConnection") { Configuration.ProxyCreationEnabled = false; Configuration.LazyLoadingEnabled = false; Database.SetInitializer(new MigrateDatabaseToLatestVersion<LearningContext, LearningContextMigrationConfiguration>()); }