I try to connect through: Microsoft SQL Server Database File (SqlClient), but I recieve error:
The attempt to attach to the database failed with the f
You need the SQL Server Express LocalDB add-on, you can get it from here in both x86 & amd64 versions.
I had faced same issue when I deployed my software on test machine.
Solution:
SELECT @@VERSION
. Try to use SQL Server Authentication. Make sure that your SQL service is running or not. I think this will help you.