Cannot open database "localdb_auth" requested by the login. The login failed.
Hello
I have what one might call a conundrum.
I have a ASP.NET 3.5 web application using Microsoftâs membership API running on a MS SQL 2005 server. Iâm trying to get the application to run solely on my local machine.
I have downloaded the app from my source repository and it compiles builds and deploys fine. There are three databases that the application connects two and all three connection strings are defined within the web.config file. If I set the data source name to my development server where the databases are held the application logs in fine without a problem. If I then go about backing up the databases and then restoring them on my laptop (the local machine), then changing the data source to my local machine and I get the following error
error|500| Cannot open database "localdb_auth" requested by the login. The login failed.
Login failed for user 'user'
Iâm using SQL authentication and the username âuserâ has the db_owner Role for all my databases
What is even stranger, is that I tried this on another laptop, did exactly the same tasks in exactly the same order. Without having to edit any of the permissions in the database (i.e. its an exact duplicate to that on the dev server).
This is error is occurring when trying to log into using the ASP.NET Login control using the Forms Authentication.
Iâve have ruled out a problem with the Application as this works fine on a different database, I have ruled out configuration problem in the database them selves as its worked else where.
So I must be a problem with the why my local SQL server is set up, but I canât figure out what.
Any suggestions would be greatly appreciated.
Oh one last thing, I was able to login to the database (through SQL Management Studio) using the âuserâ login and password fine.
Thank you for your time!
|