I am receiving an error when trying to launch my application and I believe there is an error in my web.config
file (see below). I have combined my MembershipProvider schema with my existing RESTAURANT DB.
I have 2 connection strings, one is LINQ to Entities which I use to populate my restaurant data for my application and the other is a SQL Server 2008 R2 connection for use with the membership and role provider.
The error I am receiving is on the line that begins: role manager="true"
Here is my Web.Config
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<appSettings></appSettings>
<connectionStrings>
<add name="RestaurantDB"
connectionString="data source=SFP\SFP_SQL_SVR;attachdbfilename=C:\Users\Susan\Documents\Databases\Restaurants.mdf;Initial Catalog=Restaurants.mdf;Integrated Security=SSPI;"/>
<add name="RestaurantsEntities"
connectionString="metadata=res://*/Restaurant.csdl|res://*/Restaurant.ssdl|res://*/Restaurant.msl;provider=System.Data.SqlClient;provider connection string="data source=SFP\SFP_SQL_SVR;attachdbfilename=C:\Users\Susan\Documents\Databases\Restaurants.mdf;integrated security=True;multipleactiveresultsets=True;App=EntityFramework""
providerName="System.Data.EntityClient" />
</connectionStrings>
<roleManager enabled="true"
defaultProvider="CustomizedRoleProvider">
<providers>
<add name="CustomizedRoleProvider"
type="System.Web.Security.SqlRoleProvider"
connectionStringName="RestaurantsDB" />
</providers>
</roleManager>
<membership defaultProvider="CustomizedMembershipProvider">
<providers>
<add name="CustomizedMembershipProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="RestaurantsDB" />
</providers>
</membership>
</configuration>