I created a new simple ASP.NET MVC 4 Internet Project, then created models with the ADO.NET Entity data model design, and then I installed System.Web.Providers (Universal Providers) and configured Web.config to have two different data sources. using SQL CE 4.0 .
These are my connection strings:
<add name="DefaultConnection" connectionString="Data Source=C:\maindb.sdf" providerName="System.Data.SqlServerCe.4.0" />
<add name="MyEntitiesModelContainer" connectionString="metadata=res://*/MyEntitiesModel.csdl|res://*/MyEntitiesModel.ssdl|res://*/MyEntities.msl;provider=System.Data.SqlServerCe.4.0;provider connection string="Data Source=C:\myentities.sdf"" providerName="System.Data.EntityClient" />
The application is working. But when I try to log in, this exception I get:
To call this method, the "Membership.Provider" property must be an instance of "ExtendedMembershipProvider".
I also added <add key="enableSimpleMembership" value="true" />to Web.config because someone in different forums solved the problem with this. This was not my case, the same error persists.
Can anyone help me?
daliz source
share