How do I increase the amount of data I can pass back from a RIA Service?

喜你入骨 提交于 2019-12-23 03:11:16

问题


I'm new to WCF, RIA Services, and even Silverlight for the most part. I need to know how to increase the amount of data that I can pass back from a RIA service. I know that I need to create summary lists and I am being smart about how I request data. I can't use paging because I've archetected myself into a corner, and it would be way too much refactoring at this point. I just need to double the limit of data coming back. My requests are fairly small. How can I do this, and also why is this window so small?

I'm told that I just have to modify ServiceReferences.ClientConfig but I have no idea where or what that is.


回答1:


If you're working with RIA services, you can increase limit of transferring data by increasing http request length. Add this to your Web.config:

< system.web>

    < httpRuntime maxRequestLength="1048576" />

    ...

< /system.web>

By default this value is 4Mb



来源:https://stackoverflow.com/questions/5263939/how-do-i-increase-the-amount-of-data-i-can-pass-back-from-a-ria-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!