如何增加可以从 RIA 服务传回的数据量? [英] How do I increase the amount of data I can pass back from a RIA Service?

查看:22
本文介绍了如何增加可以从 RIA 服务传回的数据量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 WCF、RIA 服务甚至 Silverlight 的新手.我需要知道如何增加可以从 RIA 服务传回的数据量.我知道我需要创建摘要列表,而且我对如何请求数据很聪明.我不能使用分页,因为我已经把自己设计成一个角落,此时重构太多了.我只需要将返回的数据限制加倍.我的要求相当小.我该怎么做,还有为什么这个窗口这么小?

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?

我被告知我只需要修改 ServiceReferences.ClientConfig 但我不知道那是什么地方或什么.

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

推荐答案

如果您正在使用 RIA 服务,您可以通过增加 http 请求长度来增加传输数据的限制.将此添加到您的 Web.config:

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>

默认值为 4Mb

这篇关于如何增加可以从 RIA 服务传回的数据量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆