-2

Here studenDetailsList are getting from database which consists of 30,000 records

Var studentDetailsList;
Foreach ( var stDetails in studentDetailsList)
{
     // Here i am inserting each student in to table
}

I am getting error has

An unhandled exception of type 'System.StackOverflowException' occurred in System.Data.Entity.dll

What could be the problem ?

can anybody help

Steven
  • 166,672
  • 24
  • 332
  • 435
kumar
  • 1,117
  • 13
  • 34
  • 58

1 Answers1

0

Probably the answer is that there is a bug in this piece of code:

 // Here i am inserting each student in to table

However, as you choose not to post the actual code, no-one can say where the bug is.

Like as not, that piece of code is recursively calling the original function. However, you chose not to reveal the name of the original function :-(

Nikki Locke
  • 136
  • 1
  • 3