c# - WCF maxReceivedMessageSize not working -
I have a WCF service that has these configuration settings. When I call it a client application I still say dangerously, "The item that can be serial or deserialized in the maximum number in an object graph '65536'" What is my configuration down?
& lt; System.serviceModel & gt; & Lt; Binding & gt; & Lt; WsHttpBinding & gt; & Lt; Binding Name = "LargeBuffer" maxReceivedMessageSize = "2147483647" maxBufferPoolSize = "2147483647" & gt; & Lt; ReaderQuotas maxDepth = "2147483647" maxArrayLength = "2147483647" maxStringContentLength = "2147483647" maxBytesPerRead = "2147483647" maxNameTableCharCount = "2147483647" /> & Lt; / Binding & gt; & Lt; / WsHttpBinding & gt; & Lt; / Binding & gt; & Lt; Services & gt; & Lt; Service transaction support = "serviced" name = "testWcfService.Service1" & gt; & Lt; Endpoint address = "" bond = "wsHttpBinding" bindingConfiguration = "LargeBuffer" name = "ServiceEndPoint" contract = "TestWcfService.IService1" & gt; & Lt; Identity & gt; & Lt; Dns value = "localhost" /> & Lt; / Identification & gt; & Lt; / Endpoint & gt; & Lt; / Services & gt; & Lt; / Services & gt; & Lt; Behavior & gt; & Lt; ServiceBehaviors & gt; & Lt; Behavior name = "service" & gt; & Lt; ServiceMetadata httpGetEnabled = "true" /> & Lt; Data Contractor Sirializer maxItemsInObjectGraph = "2147483647" /> & Lt; Service debug includes ExceptionDetailInFaults = "true" /> & Lt; / Behavior & gt; & Lt; / ServiceBehaviors & gt; & Lt; / Behavior & gt; & Lt; /system.serviceModel>
Yes I have to increase it on the side of the client to match. And it still crosses that limit. My concern is that when this service pulls back the context, then it looks at 65536 as the default size, so she never recognizes the big amount any thoughts?
Comments
Post a Comment