When returning a large amount of XML data through an ASP.NET Web API service the error: HTTP Error 500 (Internal Server Error)
is produced. This error is usually found when there is a circular dependency in the model but this is not the case here as the data returns perfectly when there is a smaller amount of data.
The error seems to be produced when the amount of nodes surpasses 60,000, after doing some research I found that there is a WCF parameter that limits the amount of items in an object graph, this parameter has a default value of: 65,536 is this what is causing my problem? and if so is there a way in which I can alter that value in ASP.NET Web API?