System.ServiceModel.CommunicationException: The underlying connection was closed

后端 未结 5 2148
粉色の甜心
粉色の甜心 2020-12-31 04:14

I am retrieving data from a wcf web service and when data is more than 0.2 million records i get an exception which is as under:

System.ServiceModel.Communi         


        
5条回答
  •  盖世英雄少女心
    2020-12-31 04:53

    we had a loop in our object graph that were returning. I know this probably isn't your problem but I'm adding it here in case anyone else has the same problem. We had includeExceptionDetailInFaults enabled but weren't getting the error in any client (our application or the WCF Test Client). Luckily it showed up in server logs so we were able to find it that way.

    We had Parent -> child and child -> parent for two-way navigation, we had to break that link and instead have parent -> child, and the child had an id to lookup the parent, then the error went away.

    Hope this helps someone!

提交回复
热议问题