ASP.NET - An attempt to attach an auto-named database for file **** failed.

Asked By MARKAND BHATT on 29-Nov-12 04:38 AM
I added new database file in my solution's app_data folder in VS2008.

But when i tried to expand it from SERVER EXPLORER, i get this error

An attempt to attach an auto-named database for file _____ failed.

Find the screen shot of the error which occured in vs2008 IDE.































Can any one tell me whats the exact issue?
And how to solve it.

Hemanth Kumar replied to MARKAND BHATT on 03-Dec-12 05:53 AM
Markand Bhatt,

 You need to attach the database in Server Explorer not in Solution explorer.