I pulled an ASPNETDB.MDF off of a server for a ASP site using Forms authentication to my local machine. I added a new user to the database file using the ASP.NET Website Configuration tool. I copied the MDF back to the server and now, i get the following exception whenever I try to log in as any user:
Cannot open user default database. Login failed. Login failed for user 'NT AUTHORITY\NETWORK SERVICE'
I have been googling and read all of the other solutions to this problem here on SO as well and haven't found anything that works.
The server has SQL Server 2008 on it and that's what I am using on my local machine with VS 2008 Professional.
My connection string:
<add name="ASPNETDBConnectionString1" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
I'm new to SQL Server so I am pretty sure I messed something up somewhere.
Any help greatly appreciated.
Thanks!