Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Entity framework StackOverflowException in constructor call? Very strange

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?

like image 923
Mathias Lykkegaard Lorenzen Avatar asked Jun 23 '26 17:06

Mathias Lykkegaard Lorenzen


1 Answers

You can debug this using the call-stack window. Probably, the solution will become obvious.

like image 136
usr Avatar answered Jun 25 '26 07:06

usr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!