小编use*_*772的帖子

WCF 错误 - (413) 请求实体太大

我有 2 个 WCF 服务一起工作。一种是类库,另一种是Web服务。

到目前为止它运行良好。但如果我尝试发送大量数据,它会抛出 413 错误......

An exception was thrown: The remote server returned an error: (413) Request Entity Too Large.

下面是 web.config 文件 -

对于类库-

    <add key="SMTP" value ="dummy"/>
    <add key="BookingEmailFrom" value ="dummy"/>
    <add key="BookingEmailToWBD" value ="dummy"/>

  </appSettings>
  <connectionStrings/>
  <system.web>
    <compilation debug="true" targetFramework="4.0"/>
    <!--
        The <authentication> section enables configuration 
        of the security authentication mode used by 
        ASP.NET to identify an incoming user. 
    -->
    <authentication mode="Windows"/>
    <!--
        The <customErrors> section enables configuration 
        of what to do if/when an …
Run Code Online (Sandbox Code Playgroud)

web-services web http-status-code-413

0
推荐指数
1
解决办法
7224
查看次数

标签 统计

http-status-code-413 ×1

web ×1

web-services ×1