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

Commented Issue: 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 integration issues are fixed when running a more recent build of VS as the inbox templates have been updated to support the changes in EntityFramework

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>