Entity Framework Duplicate type name within an assembly (6.1.0)

前端 未结 10 1729
臣服心动
臣服心动 2020-12-29 01:41

I am not sure what is going on but I keep getting the following exception when doing a query. \"Duplicate type name within an assembly.\" I have not been able to find a solu

10条回答
  •  轮回少年
    2020-12-29 02:12

    This seems to be fixed in 6.1.3.

    Here's how I come to this conclusion:

    I reliably reproduced this problem in a previous version (probably 6.1.2). Rebuilding my solution did not fix it. The stepping through with breakpoints before and after did reproduce the problem, while having breakpoints only after the point of the exception did not cause an exception, as stated here in other answers. [Summary: I seem to have the same problem as everyone else with the older version of EF.]

    Given the exact same breakpoints and with no re-boot or anything like that, I just installed the update to Entity Framework. This did fix the issue, where I could step freely with breakpoints before and after the "problem code" with no exception being thrown anymore.

    Since the issue is kind of random and temperamental to the conditions, it's hard to say definitively that the update to EF specifically addresses the issue, but so far so good.

提交回复
热议问题