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 7041533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:03:26+00:00 2026-05-28T02:03:26+00:00

I have an ASP.NET MVC 3 project that I just created using the project

  • 0

I have an ASP.NET MVC 3 project that I just created using the project template that includes the Membership provider all set up in a default manner. I’m now trying to configure the the project to utilize SQL Server CE as a data source. I’m following this blog article without much success.

http://weblogs.asp.net/scottgu/archive/2011/01/11/vs-2010-sp1-and-sql-ce.aspx

Half way down the article you’ll find the subheading “Walkthrough 2: Using EF Code-First with SQL CE and ASP.NET MVC 3”, which is the portion that I am trying to follow.

According to my understanding, all I should need to do is to configure my connection string in the web.config file so that it will utilize SQL Server CE. And as soon as I run the application and try to create a new user, the CE database file should automatically be created in my App_Data directory and I should be up and running. Granted this walkthrough is doing things a bit differently and is not using Membership Provider, but I should be pulling the underlying concepts from this and still having success. Instead I am getting an error when I try to create a new user saying that it could not find the data source.

I’m using the following for my connection string in the web.config file…

<connectionStrings>
    <add name="ApplicationServices"
         connectionString="data source=|DataDirectory|AppData.sdf" 
         providerName="System.Data.SqlServerCe.4.0" />
  </connectionStrings>

What am I doing wrong?

  • 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-05-28T02:03:27+00:00Added an answer on May 28, 2026 at 2:03 am

    The standard membership provider only supports SQL Server, but you can use the new Universal Provider available via NuGet: http://nuget.org/packages/System.Web.Providers

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

Sidebar

Related Questions

We have an ASP.Net MVC project that will start with a single web server
I have an Asp.net MVC project that modestly uses jQuery scripts. My views also
Hi I have a Visual Studio solution and an ASP.NET MVC project that uses
I have an ASP.NET MVC project and I have a single action that accepts
I have an ASP.NET MVC project with a form. In the Action method that
I have a pretty big web application that I created last year using ASP.NET
I am using T4MVC in our ASP.NET MVC project. I have a statement like
I have an ASP.NET MVC 3 app that is using SQL Server CE 4.0
I have just deployed my ASP.NET MVC 2 application using EF 4 and I
I'm new to asp.net mvc. I just created the default asp.net mvc project in

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.