Upgraded to EF6 blew up Universal provider session state for Azure
Posted
by
Ryan
on Stack Overflow
See other posts from Stack Overflow
or by Ryan
Published on 2013-10-26T15:51:30Z
Indexed on
2013/10/26
15:53 UTC
Read the original article
Hit count: 487
I have an ASP.NET MVC 4 application that using the Universal providers for session state:
<sessionState mode="Custom" sqlConnectionString="DefaultConnection" customProvider="DefaultSessionProvider">
<providers>
<add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" />
</providers>
</sessionState>
When I upgraded to entity framework 6 I now get this error: Method not found: 'System.Data.Objects.ObjectContext System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext()'.
I tried adding the reference to System.Data.Entity.dll back in but that didn't work and I know that your not suppose to add that with the new entity framework..
© Stack Overflow or respective owner