I generated an EDMX file in Visual Studio 2010 and did some work on it. It's a quite large architecture I'm working with here. It has worked just fine, and then all of a sudden, without changing anything, now when I start it, I am receiving an error when it is trying to instantiate the ModelContainer (my ObjectContext) class.
The error is received on the following line:
public ModelContainer() : base("name=ModelContainer", "ModelContainer")
In other words, the constructor of the actual EDMX class.
The error is a typical StackOverflowException. I'm unable to fetch details about the inner exception as well, since it can't when in a stack-overflow state.
Any clue?
You can debug this using the call-stack window. Probably, the solution will become obvious.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With