收到错误:必须缓冲XML内容的大小超过了缓冲区配额 [英] Getting Error : The size necessary to buffer the XML content exceeded the buffer quota

查看:2587
本文介绍了收到错误:必须缓冲XML内容的大小超过了缓冲区配额的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个控制台应用程序,并从那里我已经加入作为Web引用后调用WCF功能。我的控制台应用程序的web.config按以下..

I have developed one console application and from there i have called WCF function after adding as web reference. my console application's web.config as per below..

 <system.serviceModel>
<bindings>
  <basicHttpBinding>
    <binding name="BasicHttpBinding_IApicaAzureMonitorAgentReceiverWCF"
      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="2147483647" maxReceivedMessageSize="2147483647"
      messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
      useDefaultWebProxy="true">
      <readerQuotas maxDepth="32" maxStringContentLength="2147483647"
        maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
      <security mode="None">
        <transport clientCredentialType="None" proxyCredentialType="None"
          realm="" />
        <message clientCredentialType="UserName" algorithmSuite="Default" />
      </security>
    </binding>
  </basicHttpBinding>
</bindings>
<client>
  <endpoint address="http://apicaWCF.cloudapp.net/ApicaAzureMonitorAgentReceiverWCF.svc"
    binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IApicaAzureMonitorAgentReceiverWCF"
    contract="Dashboard2WCFData.IApicaAzureMonitorAgentReceiverWCF"
    name="BasicHttpBinding_IApicaAzureMonitorAgentReceiverWCF" />
</client>

我收到错误:缓冲XML内容所需的大小超过了缓冲区配额。我也试了一下,增加MAXBUFFERSIZE等还是没能解决这一点。希望任何人都可以在这里帮我理清这个问题。

I am getting error : The size necessary to buffer the XML content exceeded the buffer quota. I have also tried it and increased maxbuffersize and etc. still could not resolved this. hope anyone can here help me to sort out this issue.

感谢。
阿伦

推荐答案

最后我得到的解决方案,这个问题与存储过程中参数的数据类型,并得到了利用连接在Visual Studio的过程机制这一解决方案,所以我有调试WCF功能从控制台应用程序和WCF catch块得到确切的错误。

Finally i got solution , the problem was with stored procedure parameter data type and got this solution using attaching process mechanism in visual studio, so i have debug the wcf function from console application and got exact error in WCF catch block.

这篇关于收到错误:必须缓冲XML内容的大小超过了缓冲区配额的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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