StackOverflowException serializing a .netTiers entity
-
21-08-2019 - |
Question
I have a simple WCF service:
public Order[] GetOrdersByStatus(int statusid)
{
OrderService os = new OrderService();
TList<Order> orders = os.GetByOrderStateID(statusid);
return orders.ToArray();
}
when this returns it throws a StackOverflowException in mscorlib. Any idea what could be causing this?
The OrderService is a NetTiers generated service and Order is a NetTiers entity object. when I return the data is already pulled from the database and ready to go. What besides a bug in WCF could cause a StackOverflowException after I return from my operation?
Solution
If the implementation of the serialization of the "Order" type is bad, that could be it.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow