Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WCF
hello,
I am using wcf service to return collactio of data in my MVC application.
My service is working fine if the count of data is < 100. if it incerease more than 100 then it is showing Error:500 and it is not returning to the controller.
 
In my WCF:
public List GetName(id,dep)
{
List name= new List();
urlList = Obj.GetNameList(id, dep);
return urlList;
}
In my Controller:
 
this.ViewData["name"] = service.GetName(id, dep);
 
If urlList.count > 100 its giving ErrorCode:500 , The connection is getting closed while returing the data from service to controller.
 
Any suggestion Plz Help!
Posted 24-Mar-13 22:04pm
Edited 24-Mar-13 22:10pm
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Increase the maxReceivedMessageSize, maxBufferSize and maxBufferPoolSize attributes in the configuration file and then try again.
  Permalink  

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

  Print Answers RSS
0 Kornfeld Eliyahu Peter 169
1 Zoltán Zörgő 139
2 George Jonsson 135
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 25 Mar 2013
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