Click here to Skip to main content
11,790,021 members (50,414 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: WCF
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 21:04pm
Edited 24-Mar-13 21:10pm

1 solution

Rate this: bad
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.

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

  Print Answers RSS
0 OriginalGriff 1,029
1 Maciej Los 790
2 KrunalRohit 686
3 CPallini 606
4 Richard MacCutchan 460

Advertise | Privacy | Mobile
Web04 | 2.8.1509028.1 | Last Updated 25 Mar 2013
Copyright © CodeProject, 1999-2015
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