After you delete a database and come across this problem
"Cannot attach the file ERROR" - after Deleting MDF (database) file
Fix
- Remove old database connection string out of Web.Config
- Open the "Developer Command Propmpt for VisualStudio" under your start/programs menu.
- Run the following commands:
sqllocaldb.exe stop v11.0
sqllocaldb.exe delete v11.0
No comments:
Post a Comment