12 February 2013

Unable to open the physical file "C:\....\App_Data\ASPNETDB.MDF". Operating system error 32: "32 (The process cannot access the file because it is being used by another process."

When you encounter this error, there should be 2 things that you should consider :

1. Double check your ConnectionString for some configuration error.

2. Make sure you "always" close the connection to the database (ex. con.Cose();)

No comments:

Post a Comment