ASP.NET MVC Stopped Working After Updating Application - Having Issues with MembershipUser
I have updated the application to the latest versions today. Now with this code:
Membership.GetUser();
I am getting the following error:
Method not found: 'System.Data.Objects.ObjectContext System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext () ".
I know the update changed my web.config - maybe because there is something wrong with that file?
source to share
It looks like it was caused by the Microsoft.AspNet.Providers.Core
v package . 1.2. I uninstalled it and then installed version 1.1. If you are also using LocaDb
, you need to uninstall the package LocaDb
as it depends on Microsoft.AspNet.Providers.Core
. After that, you will have to reinstall LocaDb
.
Grab v. 1.1 using the NuGet Package Manager Console in Visual Studio:
Install-Package Microsoft.AspNet.Providers.Core -Version 1.1
source to share