If you wish to attach an mdf file in your application's app_data folder at run-time using SQLExpress, you may encounter a permission problem: System.Data.SqlClient.SqlException: Directory lookup for the file "C:\Documents and Settings\*\My Documents\WebSites\*\App_Data\*.mdf