Click here to Skip to main content
12,818,964 members (28,513 online)
Rate this:
Please Sign up or sign in to vote.
See more: WCF
I am having one problem.When I send request to server using WCF i get exception of

"Underlying connection closed
This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server "

I checked in wcf trace log and found that error was due to MaxItemsInObjectgraph exceeded more than 65536.But in my server side config file and in client side config file I have given MaxItemsInObjectgraph more than 65536 which is 2147483647.But still it gives error.Than I tried to give MaxItemsInObjectgraph value through code so wrote in service class as

[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    [ServiceBehavior(MaxItemsInObjectGraph = 2147483647)]
    public class CustomerAnalyzeService : ICustomerAnalyze

my servieContract part is interface that I have inherited.In that I have used operationContract.

but this is also not working.How should I solve this error.
Posted 3-Dec-12 3:04am
You explained what was "not working" in first case. But what happened in the second case, when you used 2147483647?
jaideep06.jd 7-Dec-12 7:19am
I got same error

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 3 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100