Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7820297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:14:49+00:00 2026-06-02T07:14:49+00:00

I am receiving an error when trying to launch my application and I believe

  • 0

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=&quot;data source=SFP\SFP_SQL_SVR;attachdbfilename=C:\Users\Susan\Documents\Databases\Restaurants.mdf;integrated security=True;multipleactiveresultsets=True;App=EntityFramework&quot;" 
             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>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T07:14:50+00:00Added an answer on June 2, 2026 at 7:14 am

    <roleManager> and <membership> are children of <system.web>

    Try this:

    <?xml version="1.0"?>
    
    <!--
      For more information on how to configure your ASP.NET application, please visit
      http://go.microsoft.com/fwlink/?LinkId=169433
      -->
    
    <configuration>
      <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=&quot;data source=SFP\SFP_SQL_SVR;attachdbfilename=C:\Users\Susan\Documents\Databases\Restaurants.mdf;integrated security=True;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
      </connectionStrings>
    
      <system.web>
          <compilation debug="true" targetFramework="4.0" />
    
          <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>
      </system.web>
    </configuration>
    

    See: http://msdn.microsoft.com/en-us/library/ms228147.aspx

    See: http://msdn.microsoft.com/en-us/library/dayb112d.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm receiving this error when trying to see a report.
I am receiving this error when trying to execute applescript from my java application.
I am consistently receiving the following error when trying to create a Web Reference
i am receiving this error when trying to add user location. I have a
I am receiving the following error message when trying to display my web part.
I am receiving the following error when trying to access font file : 011.08.31
I'm receiving this PHP error while trying to use the Normalizer class, specifically the
Background I'm receiving the following error when trying to render a partial view in
I'm trying to implement my own GenericIdentity implementation but keep receiving the following error
I am receiving this error. I have no clue as to why it would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.