在wcf中出现错误413 [英] occured error 413 in wcf

查看:82
本文介绍了在wcf中出现错误413的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的客户端web.config文件如下

my client web.config file is as follows

<system.servicemodel>
  <bindings>
    <basichttpbinding>
      <binding name="BasicHttpBinding_IService" maxreceivedmessagesize="2147483647" sendtimeout="00:10:00" maxbuffersize="2147483647" />
    </basichttpbinding>
  </bindings>
  <client>
    <endpoint address="http://localhost/MASS_WCF_Service/Service.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService" contract="MASS_WCF_Service.IService" name="BasicHttpBinding_IService">
    </endpoint>
  </client>
</system.servicemodel>



和服务配置文件是


and service config file is

<system.servicemodel>
  <behaviors>
    <servicebehaviors>
      <behavior>
        <servicedebug includeexceptiondetailinfaults="false" />
      </behavior>
    </servicebehaviors>
  </behaviors>
  <servicehostingenvironment multiplesitebindingsenabled="true" />
</system.servicemodel>

Plz帮助...我是wcf中的新手

Plz help...i am new in wcf

推荐答案

我的WCF服务前一段时间遇到了同样的问题。我设法通过从绑定元素中删除name属性来解决它。



替换

I had the same problem a while ago with my WCF service. I managed to resolve it in the end by removing the name attribute from the binding element.

Replace
<binding name="BasicHttpBinding_IService" maxreceivedmessagesize="2147483647" sendtimeout="00:10:00" maxbuffersize="2147483647" />





with



with

<binding maxreceivedmessagesize="2147483647" sendtimeout="00:10:00" maxbuffersize="2147483647" />



您还需要删除对此的引用从您的端点元素绑定。


You'll also need to remove the reference to this binding from your endpoint element.


这篇关于在wcf中出现错误413的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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