Click here to Skip to main content
Rate this: bad
good
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
    {.....something
;
 
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
Comments
Sergey Alexandrovich Kryukov at 3-Dec-12 14:33pm
   
You explained what was "not working" in first case. But what happened in the second case, when you used 2147483647?
--SA
jaideep06.jd at 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
0 DamithSL 390
1 Maciej Los 217
2 OriginalGriff 213
3 BillWoodruff 130
4 Garth J Lancaster 90
0 OriginalGriff 7,953
1 DamithSL 6,139
2 Sergey Alexandrovich Kryukov 5,449
3 Maciej Los 5,293
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 3 Dec 2012
Copyright © CodeProject, 1999-2014
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