\"An attempt to attach an auto-named database for file C:\\Users\\John\\documents\\visual studio 2010\\Projects\\PAS\\PAS\\bin\\Debug//PatAddSys.mdf failed. A database with
Actually I've crashed to this problem but I handled it easily. if your connection string is
connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\Database1.mdf;Integrated Security=True;"
you need to make your own localDB. first go to command prompt than write
sqllocaldb create MyDatabase
than start your database
sqllocaldb start MyDatabase
than return to VS and change your connection string to
connectionString="Data Source=(LocalDB)\MyDatabase;AttachDbFilename=|DataDirectory|\Database1.mdf;Integrated Security=True;"