Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi and TIA:

I have a current series of aspx pages that reads/updates etc a 2010 developed database on a Web Server and all is well with that version.

I have since "updated" the pages on my development machine using VS 2012 Express and once again all is well locally, thus I felt it was time to upload my new 2012 pages. I did, however, NOT upload the new database tables including Membership and Users.

I have a login page and when I now try to login with a username and password that worked in the 2010 version, I get and Error "Login failed for user".

My question is what must I do to gain access with my new pages to the old database and be able to login. Do I need to re-create the old (on web server) tables on my development machine and then re-upload (which seems like a lot of work, but it's Ok if that is what I must do)?

Any thoughts would be helpful.
Thanks, Cliff
Posted
Updated 23-Mar-15 9:22am
v2
Comments
Member 11525422 23-Mar-15 15:24pm    
What I have noticed is that in the "new" development database, in particular the Membership and Users table values for Username and UserId differ from the exisiting Web Server Versions.

1 solution

First, Visual Studio doesn't have a database engine. The installation installs Sql Server Express edition or, in new editions, SQL Server LocalDb.

So, can you use a MDF file created in an older SQL Server Express in a newer one? Yes.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900