如何通过WCF服务发送大量数据? [英] How to send large amount of data through a WCF service?
问题描述
我有一个winform,用户可以从数据网格中保存一些xyz数据。
当我在datagrid中有30-40行的少量行时,我能够保存,但是如果它在datagrid中超过50行,我将无法保存数据并获得以下异常
I have a winform where a user can save some xyz data from a datagrid.
When i have small amount of rows that is say 30-40 rows in datagrid i am able to save but if it exceeds 50 rows in datagrid i am not able to save the data and getting the following exception
System.ServiceModel.ProtocolException was caught
Message=The remote server returned an unexpected response: (400) Bad Request.
Source=mscorlib
背后的原因可能是什么原因以及如何解决这个问题。
我试过什么我能在互联网或其他论坛上找到
我尝试过:
maxStringContentLength =2147483647maxArrayLength =2147483647
maxBytesPerRead =2147483647maxNameTableCharCount =2147483647
在我的应用程序配置中
What could be the reason behind the same and how can i resolve the issue.?
I have tried what ever i could find on the internet or other forums
What I have tried:
maxStringContentLength="2147483647" maxArrayLength="2147483647"
maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"
in my app config
推荐答案
检查这些链接,
1. 在WCF服务中传输大量数据 - 堆栈溢出 [ ^ ]
2. Transferr使用WCF |通过线路传输大数据InfoWorld [ ^ ]
Check these links,
1. Transfer large amount of data in WCF service - Stack Overflow[^]
2. Transferring large data over the wire using WCF | InfoWorld[^]
这篇关于如何通过WCF服务发送大量数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!