I have an application which consumes WCF services. My problem is I am fetching around 6000 rows from database, my service shows faulted channel error while deserializing h开发者_如何学Pythonuge amount of data. Infact I have increased the attribute values(like maxStringContentLength,maxArrayLength,maxBytesPerRead,maxNameTableCharCount,CloseTimeOut, SendTimeOut etc..) in service app.config, web.config as well as in the web.config of my web application. But still no luck.
Can anyone please suggest me what to do in this scenario, so that my service wont go to faulted state.
Thanks
Enabling tracing will certainly tell you exactly what the problem is. One possible suspect is the maxItemsInObjectGraph quota (default = 65536) which you can increase by using a <dataContractSerializer>
element in either a service or an endpoint behavior.
精彩评论