I have a List
of State
entity objects, and each State
object has collections of other objects, such as Licenses
I got the same problem when accidently loading a Module multiple times in a modular Architecture.
Additional, the Module(s) where using 2 copies of the same DbContext
, trying to connect one Entity from one Context to another Entity of the other Context.
This masked the InvalidOperationException
(cannot use an Entity in multiple Trackers), which occurs normally without the module stuff.
Took me 3 hours to solve, maybe it helps people with the same problem
If it's only for Nevada then it must be a data problem, do a thorough check in the db.
And to summarize, the core problem was: