Today I updated my application to the latest versions. Now at this code:
Membership.GetUser();
I get following error:
Method not found: 'System.Data.Objects.ObjectContext System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext()'.
I know that the update has changed my web.config - maybe it's because something is wrong in this file now?
Looks like this is caused by the package Microsoft.AspNet.Providers.Core
v. 1.2. I uninstalled it and then installed version 1.1. If you are also using LocaDb
, you have to uninstall LocaDb
package since it depends on Microsoft.AspNet.Providers.Core
. You'll have to reinstall LocaDb
afterwards.
Grab v. 1.1 using the NuGet Package Manager Console within Visual Studio:
Install-Package Microsoft.AspNet.Providers.Core -Version 1.1