NetTcpBinding's Max Node Depth of 32 easily reached with long queries


I've been evaluating interlinq for a project of ours and it looks fantastic. There is however a small issue with ling linq queries that when serialized to the SerializedExpression would cause the WCF DataContractSerializer to throw an exception because the default MaxDepth of the xml reader, 32, would have been exceeded.
This line in ServiceHelper.cs in function GetNetTcpBinding solves the issue.
netTcpBinding.ReaderQuotas.MaxDepth = int.MaxValue;
Closed Sep 10, 2009 at 10:29 AM by mbauer
Thank you for your feedback. Your issue has been fixed. And that's not all, no no! :-)The WCF channel of InterLINQ now supports configuration by App.config (<system.serviceModel>). You can use ......ClientQueryWcfHandler.Connect(string endpointConfigurationName) to connect using your endpoint configuration in App.config (<system.serviceModel>.<client>.<endpoint>)...ServerQueryWcfHandler.Start(bool useAppConfig = true) to set up the server using your App.config (<system.serviceModel>.<services>.<service>)Check out the updated example, it already contains this functionality!Kind RegardsManuel