Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Commented Unassigned: EF 6 RC1 breaks Microsoft ASP.NET Identity EntityFramework 1.0.0-beta1 [1588]

$
0
0
REPRODUCE

Install Visual Studio 2013 Preview + ASP.NET and WebTools 2013 Preview Refresh Update
New WebProject, MVC
Update all nuget packages
Run the app, try registering via clicking the link on the top

RESULT

Could not load type 'System.Data.Entity.DbSetExtensions' from assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

POTENTIAL ROOT CAUSE

In the change from EF6 beta1 to EF6 RC1 DbSetExtensions has been removed which breaks Microsoft.AspNet.Identity.EntityFramework

Microsoft.AspNet.Identity.EntityFramework.Store<>.GetByID is looking for FindAsync<> in System.Data.Entity.DbSetExtensions.

Seems to be related to the change in work item 1368

STACK TRACE

[TypeLoadException: Could not load type 'System.Data.Entity.DbSetExtensions' from assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]
Microsoft.AspNet.Identity.EntityFramework.Store`1.GetByID(Object id) +0
Microsoft.AspNet.Identity.EntityFramework.<Find>d__c.MoveNext() +126

Comments: The refresh of the ASP.NET Identity Framework I mentioned before is now live in NuGet. http://www.nuget.org/packages/Microsoft.AspNet.Identity.EntityFramework/1.0.0-rc1

Viewing all articles
Browse latest Browse all 10318

Trending Articles