My answer on stackoverflow.com, so I remember how to do this next time.
ASP.NET MVC 4: 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: "Cannot attach the file *.mdf as database"
To fix this using SQL SERVER Management Studio