Having problems getting sample code running with a Sql Server Express mdf file? Do you run as non-admin?
This week, I spent sometime playing around with the Atlas downloads from Mix '06 and the Asp.Net Club starter kit .... but first I had to get them running.
The first thing to remind yourself if you are going through this and not having much luck in getting it going is this: this is the best way to learn the details! - so don't get frustrated.
For me the key was User Instances or RANU (Run as normal user). Since I don't run as Administrator, my account and/or (depending on how I was running the app) didn't have write permission on the mdf file. Here is the article that showed me the way: Sql Server 2005 Express Edition User Instances
Hope this helps some one!