简体   繁体   English

大量数据的WCF服务错误

[英]WCF service Error for large amount of data

I have a WCF service running on my application. 我的应用程序上运行了WCF服务。 Whenever I pass large amount of data to the service I get this error 每当我将大量数据传递给服务时,都会出现此错误

The remote server returned an unexpected response: (413) Request Entity Too Large. 远程服务器返回了意外的响应:(413)请求实体太大。

How to solve this error? 如何解决这个错误?

I did R&D on this issue but did not find any suitable answers. 我在此问题上进行了研发,但没有找到合适的答案。

I am creating an entity dynamically which contains 53 fields, but when I try to add the 54th field this error is thrown. 我正在动态创建一个包含53个字段的实体,但是当我尝试添加第54个字段时,会引发此错误。

The problem arises due to file size of the image 由于图像的文件大小而出现问题

Can't upload large files using IIS 无法使用IIS上传大文件

The fix is simply to up the size of the UploadReadAheadSize metabase property. 解决方法只是增加UploadReadAheadSize数据库属性的大小。

Reference 1 , 2 , 3 参考123

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM