Thanks for your response.
I did try after adding the Initial Catalog in the connectiion string so that it now looks like this:
data source=.\SQLEXPRESS;Initial Catalog=ASPNETDB;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;Integrated Security=True;User Instance=true
But I am still getting an error when I hit the Submit button on the LOGIN control (Its now a different error)
Unable to open the physical file "D:\VS2008_Workspace\ShoppingCart\App_Data\aspnetdb_log.ldf". Operating system error 5: "5(Access is denied.)".
Cannot create file 'D:\VS2008_Workspace\ShoppingCart\App_Data\aspnetdb_log.LDF' because it already exists. Change the file path or the file name, and retry the operation.
Could not open new database 'ASPNETDB'. CREATE DATABASE is aborted.
Cannot attach the file 'D:\VS2008_Workspace\ShoppingCart\App_Data\aspnetdb.mdf' as database 'ASPNETDB'.
Now its is complaining about the access to ASPNETDB_LOG.MDF file
I am also accessing another Sql Server file in my web application and its connection string looks like this:
Data Source=.\SQLEXPRESS;Initial Catalog=Halloween;Integrated Security=SSPI;AttachDbFileName=|DataDirectory|\Halloween.mdf;Integrated Security=True;User Instance=True
Its funny because it is able to access this (Halloween) SQL Server Database without any problems
The ASPNETDB is the one its having problems with ..
Do you have any ideas ?