Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/315.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# (413)请求实体太大,设置不';行不通_C#_Web Services_Wcf_Sharepoint 2013 - Fatal编程技术网

C# (413)请求实体太大,设置不';行不通

C# (413)请求实体太大,设置不';行不通,c#,web-services,wcf,sharepoint-2013,C#,Web Services,Wcf,Sharepoint 2013,我想通过WSF服务发送大量数据。这项服务很有效,问题是我在发送信息时附加了大文件(1MB) 我在Stackoverflow上搜索了这个问题,发现了这个问题: 我在阅读时设置了app.config,但它不起作用,我收到了相同的错误。这是我的app.config <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="entity

我想通过WSF服务发送大量数据。这项服务很有效,问题是我在发送信息时附加了大文件(1MB)

我在Stackoverflow上搜索了这个问题,发现了这个问题:

我在阅读时设置了app.config,但它不起作用,我收到了相同的错误。这是我的app.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  </configSections>
  <connectionStrings>
    <add name="HelpDeskBPMEntities" connectionString="metadata=res://*/Model.ModelReparaliaView.csdl|res://*/Model.ModelReparaliaView.ssdl|res://*/Model.ModelReparaliaView.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=MAMSQLT01;initial catalog=ProcesosBackOffice;user id=User_ro_HD;password=@n@cl3t;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
  </connectionStrings>

  <system.serviceModel>

    <bindings>
      <webHttpBinding>
        <binding
          maxBufferPoolSize="2147483647"
          maxReceivedMessageSize="2147483647"
          maxBufferSize="2147483647" transferMode="Streamed">
        </binding>
      </webHttpBinding>
    </bindings>
</system.serviceModel>
</configuration>

这是我的服务:

<%@ ServiceHost Language="C#" Debug="true"
    Service="Rep.RepService, $SharePoint.Project.AssemblyFullName$"
    CodeBehind="RepService.svc.cs"
    Factory="Microsoft.SharePoint.Client.Services.MultipleBaseAddressWebServiceHostFactory,
    Microsoft.SharePoint.Client.ServerRuntime, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c" %>

我忘了什么


提前感谢。

您可能忘记了??您也只显示了服务或客户端绑定配置-它们相同吗?我不显示客户端绑定配置。对不起,我真的是个新手@我添加了好奇男孩,但仍然不起作用。检查一下这篇文章:当然还有这篇:我做了第二个改变。关于第一个链接,我不明白我要做什么改变。我想我必须设置大小,但不幸的是,我不知道您怎么会忘记??您也只显示服务或客户端绑定配置-它们是否相同?我不显示客户端绑定配置。对不起,我真的是个新手@我添加了好奇男孩,但仍然不起作用。检查一下这篇文章:当然还有这篇:我做了第二个改变。关于第一个链接,我不明白我要做什么改变。我想我必须设置尺寸,但不幸的是我不知道如何设置