Basically I\'ve followed a tutorial and decided to delete the .mdf file afterwards.
Now whenever I try to run the application I get the following error
I recently ran into the same problem. Here is one thing to check. in visual studio there are three place we should check and remove the database.
1. Solution Explorer's App_Data folder
2. Server Explorer's Data Connection menu
3. SQL Server Object Explorer
When I delete database from the first two point, the error still occurs. So, I needed to delete the database from the SQL Server Object Explorer as well. Then I could easily run the 'update-database' command without error. Hope this helps.