问题
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