I work on WPF MVVM + EF6 + SQL Server

The program works fine on my PC, but when I start it on another PC, an error occurs when I start the window where the action with the database is performed. Actually, at first it loads for a long time, and then the error flies:


A raw exception of type "System.Data.Entity.Core.EntityException" in EntityFramework.SqlServer.dll

More information The underlying provider failed on Open


ViewModel code that runs on startup:

AttestationDBEntities db; public StructureDataBaseViewModel() { db = new AttestationDBEntities(); Departments = db.TDepartments.ToList(); } private IEnumerable<TDepartment> departments; public IEnumerable<TDepartment> Departments { get { return departments; } set { departments = value; OnPropertyChanged("Departments"); } } 

Connection string

 connectionString="metadata=res://*/Models.AttestationDBModel.csdl|res://*/Models.AttestationDBModel.ssdl|res://*/Models.AttestationDBModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=(localdb)\MSSQLLocalDB;attachdbfilename=|DataDirectory|\AttestationDB.mdf;integrated security=True;connect timeout=30;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" 

The user’s MSSQLLocalDB instance is running

0