Monday, October 6, 2014

The file references an XML namespace that is inconsistent with the target framework of the project. (Entity Framework 6)

When adding an ADO.NET Entity Data Model to a ASP.NET project which connects to a certain SQL Server database, the entities (tables) do not appear on the model design view. However, the model successfully connects to the SQL DB.

Upon checking the Model design view, an error is shown which is the title of this post. After debugging and re-doing the steps in adding Entity Data Model, the error still persists.

Later, I found out that the ASP.NET project target framework was 4.0. Changing it to .NET Framework 4.5 solved the issue.



Post a Comment