[c#] Entity Framework The underlying provider failed on Open

Please check the following things first.

While generating the Edmx you would have given a name to you connection string. that gets into the app config of the project with the Entity.

Have you copied the same connection string to your main Config file. Also the Name should be same as which you have given while generating the EDMX file.