Avatar ·

MetadataException: Unable to load the specified metadata resource in Entity Framework

Hi everyone! I'm new to C# and Entity Framework. I created a database model using the Database First approach (generated .edmx from an existing database). Everything compiles without errors, but when I try to execute any query against the data context, I get this exception: ``` System.Data.MetadataException: Unable to load the specified metadata resource. ``` Here's my context code (simplified): ```csharp public partial class MyEntities : DbContext { public MyEntities() : base("name=MyEntities") { } } // Usage: using (var db = new MyEntities()) { var users = db.Users.ToList(); // Error occurs here } ``` Connection string in App.config: ```xml