解決WCF跨機器調用時發生“調用方未由服務進行身份驗證”的錯誤


1、服務器端Web.config配置文件,增加如下部分:

<system.serviceModel>
<bindings>
  <wsHttpBinding>
    <binding name="WSHttpBinding_NoneSecurity" maxBufferPoolSize="12000000" maxReceivedMessageSize="12000000" useDefaultWebProxy="false">
      <readerQuotas maxStringContentLength="12000000" maxArrayLength="12000000"/>
      <security mode="None"/>
    </binding>
  </wsHttpBinding>
</bindings>
</system.serviceModel>

2、客戶端app.config配置文件,修改或增加紅色部分:

<wsHttpBinding>
  <binding name="WSHttpBinding_IService1">
    <security mode="None" />
  </binding>
</wsHttpBinding>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM