Click here to Skip to main content
13,096,268 members (53,038 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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<string> GetName(id,dep)
List<string> name= new List<string>();
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
Updated 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
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170813.1 | Last Updated 25 Mar 2013
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