ASP.NET Web Form User Data - Not Stored in SQL

335 views Asked by At

I have an ASP.NET Web Form application (.NET 4.5), and my connection string is set to connect to my Advantage Database Server (ADS). I am trying to utilize the pre-canned forms already in the ASP.NET Web Forms page for user accounts, but I have a problem: I don't know where the data is being stored.

I know in a normal situation, this data would be stored in a localDB that is set up in the connection string in Web.config. However, as I mentioned, I am not using SQL, I am using ADS.

Anyone know where this data is getting stored, since it isn't creating a localDB .mdf file?

1

There are 1 answers

0
voluntaryist7 On BEST ANSWER

Thanks to mason, I found the problem. The "Default Connection" of ApplicationDbContext should have been changed to match my web.config file.

I added a second connection string (since my first points to my ADS Database) and named it "UserAccounts." This has the same default path to a local SQL DB that Visual Studio generates by default when creating a Web Form application. So now I have my user account data being stored locally. I was, up to this point, unaware that you could add multiple connection strings to different databases.