0

I've started writing an application with a SQL database that I called TheDB.mdf. In the app data folder there's also another file called ASPNETDB.mdf. What does this second file do? I imagine it's created by the framework; is it ok to have my application built like that? Will it be a problem when I go to deploy on a server at a hosting service? I'm starting with the Login control; where is the user information stored?

Thanks for your patience; I'm new to the framework. Suggestions and advice welcome!

2 Answers 2

1

aspnetdb.mdf stores the user information for the default Forms Authentication Membership Provider that is provided by the framework.

It's fine to leave there but you can also add the tables to your database and modify your connection strings or implement a custom table structure and write your own Membership Provider for Forms Auth.

Sign up to request clarification or add additional context in comments.

1 Comment

Ok, good to know. I don't want to have users create accounts on the application because it's just a demo for now. I saw somewhere that I can create users without having to build a signup page. Where is this feature?
0

ASPNETDB.mdf is where the user information is stored. It is ok to have this database along-side your application database.

You can add the same data-structures found in this database to your own database using aspnet_regsql.exe found in c:\windows\microsoft.net\framework\vXXXXX\

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.