I was getting an exception like this. The problem was that I renamed my .edmx
file and forgot to change the name in EF Web.config
file’s connection string:
metadata=res://*/MyModel.csdl|res://*/MyModel.ssdl|res://*/MyModel.msl;
More Related Contents:
- EF 4.1 – Code First – JSON Circular Reference Serialization Error
- Error: “The specified LINQ expression contains references to queries that are associated with different contexts”
- Non-static method requires a target
- Place to put Database.SetInitializer
- Serializable classes and dynamic proxies in EF – how?
- Entity Framework – how do I get the columns?
- The ObjectContext instance has been disposed and can no longer be used for operations that require a connection [duplicate]
- mapping multiple tables to a single entity class in entity framework
- Entity Framework: field of composite key cannot be nullable?
- One DbContext per web request… why?
- Validation failed for one or more entities. See ‘EntityValidationErrors’ property for more details [duplicate]
- Entity Framework Code First – two Foreign Keys from same table
- What does principal end of an association means in 1:1 relationship in Entity framework
- Easiest way to create a cascade dropdown in ASP.NET MVC 3 with C#
- Entity Framework .Remove() vs. .DeleteObject()
- The type or namespace name does not exist in the namespace ‘System.Web.Mvc’
- Why is inserting entities in EF 4.1 so slow compared to ObjectContext?
- Overriding SaveChanges and setting ModifiedDate, but how do I set ModifiedBy?
- Dictionary map to an object using Automapper
- Why is Asp.Net Identity IdentityDbContext a Black-Box?
- Navigation Property without Declaring Foreign Key
- MySQL Entity Framework Error – The specified store provider cannot be found in the configuration, or is not valid
- Join and Include in Entity Framework
- Creating dynamic queries with entity framework
- Global setting for AsNoTracking()?
- MVC 3: How to render a view without its layout page when loaded via ajax?
- Unit testing with EF Core and in memory database
- Entity Framework Eager Load Not Returning Data, Lazy Load Does
- EF models. Navigation properties can only participate in a single relationship
- Seed Entities AND Users, Roles?