System.ArgumentException: Duplicate type name within an assembly

后端 未结 4 1393
囚心锁ツ
囚心锁ツ 2021-02-13 15:18

I am working on an ASP.Net MVC 3 web application using EF 4.1. Since today, I am getting this error:

System.ArgumentException: Duplicate type name within an assembly

4条回答
  •  无人共我
    2021-02-13 15:48

    Ran into this issue today. I deleted all of my tables from the Entity Model .edmx file, the updated my model from the Database (right-click --> update from database).

    Then I re-compiled and it ran fine. Such an odd error.

    I am running MVC 4 and EF 5.0

提交回复
热议问题