title: Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path
body: <p>net project in vs2010 i have a db and table inside the app_data folder, i have created a deployment package and have imported the package into an iis server that is installed on my local mechine.
  now i get this error message while trying to preform an insertion.</p>
  
  <blockquote>
    <p>Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed</p>
  </blockquote>
  
  <p>the connection string is:</p>
  
  <blockquote>
    <p>Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\survey.mdf;Integrated Security=True;User Instance=True</p>
  </blockquote>
  
  <p>when running it inside VS2010 it`s working fine.</p>
  
  <p>how can i solve this probelm ? </p>