Cannot attach the file ‘{0}' as database '{1}' - by Shimmy Weitzhandler

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 770758 Comments
Status Closed Workarounds
Type Bug Repros 2
Opened 11/11/2012 10:55:32 PM
Access Restriction Public


I'm encountering the exact issue as described here: (read section "Cannot Attach to Deleted MDF File"), but the solution to the problem is not told there...

In short the issue is that after deleting the .mdf file, the following exception is thrown when I try to access the DB using EF 5.0.

Cannot attach the file ‘{0}' as database '{1}'

I did delete the DB file and now I get that nasty error message when running the application expecting it to use it's initializer.
Sign in to post a comment.