Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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<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
Updated 24-Mar-13 21:10pm
v2

1 solution

Increase the maxReceivedMessageSize, maxBufferSize and maxBufferPoolSize attributes in the configuration file and then try again.
 
Share this answer
 

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


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900