C# 仍有",;远程服务器返回错误:(413)请求实体太大;

C# 仍有",;远程服务器返回错误:(413)请求实体太大;,c#,wcf,app-config,C#,Wcf,App Config,我已经用谷歌搜索过StackOverflow上的所有文章,但我仍然收到错误“远程服务器返回了一个错误:(413)请求实体太大”,似乎还不知道如何解决 我的app.config文件如下所示: <?xml version="1.0" encoding="utf-8" ?> <configuration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4

我已经用谷歌搜索过StackOverflow上的所有文章,但我仍然收到错误“远程服务器返回了一个错误:(413)请求实体太大”,似乎还不知道如何解决

我的app.config文件如下所示:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
  </startup>
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_ISyncService"
                 messageEncoding="Text"
                 textEncoding="utf-8"
                 transferMode="Buffered"
                 allowCookies="false"
                 bypassProxyOnLocal="false"
                 hostNameComparisonMode="StrongWildcard"
                 useDefaultWebProxy="true"
                 closeTimeout="00:10:00"
                 openTimeout="00:10:00"
                 sendTimeout="00:10:00"
                 receiveTimeout="00:10:00"
                 maxBufferPoolSize="2147483647"
                 maxBufferSize="2147483647"
                 maxReceivedMessageSize="2147483647">
          <readerQuotas
            maxDepth="2000000"
            maxStringContentLength="2147483647"
            maxArrayLength="2147483647"
            maxBytesPerRead="2147483647"
            maxNameTableCharCount="2147483647" />
          <security mode="None">
            <transport
              clientCredentialType="None"
              proxyCredentialType="None"
              realm="" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://localhost:51283/SyncService.svc" binding="basicHttpBinding"
          bindingConfiguration="BasicHttpBinding_ISyncService" contract="SyncService.ISyncService"
          name="BasicHttpBinding_ISyncService" />
    </client>
  </system.serviceModel>
</configuration>


a)你确定你正在使用app.config中的绑定吗,b)你到底在发送什么?你请求的实体是自引用还是其他类型的循环引用?Soap无法处理圆引用。@BugFinder:我已从App.config文件复制了行。我正在发送任何类型的文件。@Rabban:我不确定你所说的“自我引用”是什么意思,但我正在尝试从我的文件夹发送一个文件。文件有多大?你是如何发送的?