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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:37:59+00:00 2026-05-26T08:37:59+00:00

I have created a sample web application in Visual Studio 2010. It stores Membership

  • 0

I have created a sample web application in Visual Studio 2010. It stores Membership data(users, roles etc) in a .mdf file in App_data folder. But I don’t wanna do this. I wanna store data in SQL server database.

For that I Google a lot but could not find solution. Here is what I am doing so for. First I create application then by using Web configuration tool I set users, roles etc and when hit provider tab it throws following error:

Could not establish a connection to the database. If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.

Then I execute aspnet_regsql utility and created a database in SQL Server and again open web configuration tool but error is same, no change.

Please guide either i am going in right direction or not. If right then how can I store data in aspnet_regsql generated SQL server database?

Note that I am using .NET framework 4, SQL server 2008 R2, Visual studio 2010. In fact I was expecting that there will be connection string in web.config file just like other data driven controls do. But no entries go in web.config file.

  • 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-26T08:37:59+00:00Added an answer on May 26, 2026 at 8:37 am

    Well normally the asp.net membership is used for sqlserver for big applications. first go to the web.config and comment the connection string already there and add a connection string that connects to the sqlserver and the cataloge name.

    <add name="ApplicationServices"
         connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
         providerName="System.Data.SqlClient" />
    

    replace it with

    <add name="ApplicationServices"  connectionString="data source=servername;database name=databasename;user name= username; password=pass;
         providerName="System.Data.SqlClient" />
    

    then configure normally in the aspnet_regsql. and this will do the drill for sure.

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

Sidebar

Related Questions

I have a very simple ASP.NET web application created under Visual Studio 2008 (SP1),
Hi My web server is Apache.I have created a sample application in my local
I have created a sample java socket application. I used Socket s = new
In Visual Studio 2010 I created a new Ajax enabled WCF Service [ServiceContract(Namespace =
Im creating a web application in asp.net visual studio 2008.. in my application, i
I am attempting to create a simple silverlight 4 application in visual studio 2010
Hi, I have done the following : Start Visual Studio 2010 New Project >
I have an ATL exe server written with C++ (Visual Studio 2010, with merging
We* have a web application, created by Delphi + Intraweb (for the front end/web
I have created a simple web application, for which I want all responses with

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.