0

I wrote a program with a database in VS2012, when I want to run this in another computer I get an Error

Invalid value for key 'attachdbfilename'

My Connection String is :

Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\BMS_DB.mdf;Integrated Security=True;Connect Timeout=30

I install SqlLocalDB_x86.MSI but still I get this Error
I use windows 10 and I wrote my program in Visual Studio 2012 with LinqtoSQL

I search very much in web but can not to solve this problem

Aryan Firouzian
  • 1,940
  • 5
  • 27
  • 41
  • https://blogs.sentryone.com/aaronbertrand/bad-habits-attachdbfilename/ – Sean Lange Nov 06 '17 at 20:32
  • 2
    Possible duplicate of [asp.net mvc Invalid value for key 'attachdbfilename'](https://stackoverflow.com/questions/12135081/asp-net-mvc-invalid-value-for-key-attachdbfilename) – Niklas Nov 06 '17 at 20:51

0 Answers0