当前位置:网站首页>WebService出错 Maximum message size quota for incoming messages (65536) has been exceeded.已超过传入消息(655
WebService出错 Maximum message size quota for incoming messages (65536) has been exceeded.已超过传入消息(655
2022-07-28 05:23:00 【海乐学习】
WebService应用中如果收到的信息非常大时出错。
1:Maximum message size quota for incoming messages (65536) has been exceeded.已超过传入消息(65536)的最大消息大小配额。若要增加配额,请使用相应绑定元素上的 MaxReceivedMessageSize 属性。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.ServiceModel.QuotaExceededException: 已超过传入消息(65536)的最大消息大小配额。若要增加配额,请使用相应绑定元素上的 MaxReceivedMessageSize 属性。
解决办法:
修改Web.Config文件,其中的MaxReceivedMessageSize 可以改大一点,改成2147483647好了。
maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"2:读取 XML 数据时,超出最大字符串内容长度配额 (8192)。通过更改在创建 XML 读取器时所使用的 XmlDictionaryReaderQuotas 对象的 MaxStringContentLength 属性,可增加此配额。 第 211 行,位置为 394。
解决办法:
也是修改Web.Config中的MaxStringContentLength ,这是有些数据比较长的时候出现这个问题,改大一点就可以了吧。
<readerQuotas maxDepth="64" maxStringContentLength="8192000" maxArrayLength="16384000"
maxBytesPerRead="4096000" maxNameTableCharCount="16384000" />下面是完整的代码:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="FileServiceSoapBinding" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="64" maxStringContentLength="8192000" maxArrayLength="16384000"
maxBytesPerRead="4096000" maxNameTableCharCount="16384000" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
<binding name="FileServiceSoapBinding1" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="64" maxStringContentLength="8192000" maxArrayLength="16384000"
maxBytesPerRead="4096000" maxNameTableCharCount="16384000" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>边栏推荐
- vSphere ESXi 7.0 Update 3 发行说明
- 深度学习(增量学习)——(ICCV)Striking a Balance between Stability and Plasticity for Class-Incremental Learning
- Difference between shallow copy and deep copy
- Interpreting the knowledge in a neural network
- Deep learning - patches are all you need
- Addition and multiplication calculation of GF (2^8)
- 详解爬电距离和电气间隙
- 基于差值扩展的可逆水印方法
- Deep learning (self supervision: simple Siam) -- Exploring simple Siamese representation learning
- USB Network Native Driver for ESXi更新到支持ESXi7.0.1
猜你喜欢

Reinforcement learning - Multi-Agent Reinforcement Learning

一、语音合成与自回归模型

5、 Video processing and GStreamer

深度学习(二)走进机器学习与深度学习编程部分

后门攻击与对抗样本攻击的比较研究

使用PowerCli来创建自定义ESXi ISO镜像

The difference between router and switch

Improved knowledge distillation for training fast lr_fr for fast low resolution face recognition model training

Tornado first met

Reversible digital watermarking method based on histogram modification
随机推荐
神经网络学习
What are the points for attention in the development and design of high-end atmospheric applets?
关于接触器线圈控制电路设计分析
关于隔离电源断电瞬间MOSFET损坏问题分析
Adaface: quality adaptive margin for face recognition image quality adaptive edge loss for face recognition
D2SC-GAN:基于双深浅通道生成对抗网络的课堂场景低分辨率人脸识别
循环神经网络
《Distilling the Knowledge in a Neural Network》知识蒸馏论文解读
tf.keras搭建神经网络功能扩展
利用辅助未标记数据增强无约束人脸识别《Boosting Unconstrained Face Recognition with Auxiliary Unlabeled Data》
Nsctf web Title writeup
深度学习(增量学习)——(ICCV)Striking a Balance between Stability and Plasticity for Class-Incremental Learning
Internet of things interoperability system: classification, standards and future development
CVE_ 2017_ 11882 vulnerability recurrence (Metasploit opens NT remote desktop to add an account)
深度学习(自监督:SimSiam)——Exploring Simple Siamese Representation Learning
ESXi on ARM v1.2 (2020年11月更新)
EIGamal cryptosystem description
无约束低分辨率人脸识别综述三:同质低分辨率人脸识别方法
Apache log4j arbitrary code execution replication
Reinforcement learning - Basic Concepts