WCF RIA 问题: 表查询返回的内容过多
来源:互联网 发布:代理服务器软件 编辑:程序博客网 时间:2024/06/05 08:38
如果表查询返回的内容过多,查询就会出错“Theremote server returned an error: NotFound”
后台错误:Maximum number ofitems that can be serialized or deserialized in an object graph is ‘65536’.
解决办法:调整:MaxItemsInObjectGraph,在<system.serviceModel>中指定Service和behavior
l Service的名字是:
name=”YourRiaProjectName.Web.YourDomainServiceName”
l behavior的名字是:
name=” YourRiaProjectName-Web-YourDomainServiceName”
<!--<system.serviceModel>-->
<services>
<service name="RIALIB.Web.DomainSVC" behaviorConfiguration="RIALIB-Web-DomainSVC"/>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="RIALIB-Web-DomainSVC">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
<dataContractSerializer maxItemsInObjectGraph="655360"/>
</behavior>
</serviceBehaviors>
</behaviors>
<!--<serviceHostingEnvironment aspNetCompatibilityEnabled="true"
multipleSiteBindingsEnabled="true" />
</system.serviceModel>-->
- WCF RIA 问题: 表查询返回的内容过多
- Silerlight调用WCF、Web Service、Wcf Ria Service跨域的问题
- WCF RIA Services 在 IIS6 部署问题
- WCF RIA 问题. 编译时 CreateRiaClientFilesTask 失败
- WCF RIA 解决超时报错问题
- 关于wcf ria service 中复杂条件查询的经验小结
- wcf ria 解决linq表达式拼接动态查询的类PredicateBuilder
- wcf+linq to sql中关联查询返回数据问题
- WCF RIA SERVICE如何返回自定义类型(非Entity)
- 更强悍的Silverlight: WCF RIA Services
- wcf ria forms验证的处理方式
- WCF RIA方法无效的一种解决方法
- WCF RIA Services - Tip: EntitySet的在Silverlight端的缓存问题
- WCF RIA Service实体嵌套问题(更正一下前面的动态数据集模拟)
- WCF Data Services 与 WCF RIA Services 的比较
- WCF Data Services 与 WCF RIA Services 的比较
- LAST_ACK过多的问题
- css处理文本内容过多.....显示问题
- iPhone消息推送机制实现与探讨
- DLL的另类调用
- Calendar类roll和add的区别
- Repeater 的ItemCreated事件触发的时侯,即为一个模板被创建的时候
- 一个没有引发异常中断的access violation
- WCF RIA 问题: 表查询返回的内容过多
- Android Gesture 手势识别使用实例
- JAVA操作properties文件
- IMX51系统修改wifi的mac
- hfsc使用实验
- 标准IO与linux系统IO的缓冲问题
- Windows Phone之于Android的基因进化
- 软件测试计划
- mysql报错了