关键是加粗的两行。

<system.serviceModel>
  <behaviors>
   <serviceBehaviors>
    <behavior name="BOAutoApprovalWCFBehavior">
     <serviceMetadata httpsGetEnabled="true" />
     <serviceDebug includeExceptionDetailInFaults="false" />
    </behavior>
   </serviceBehaviors>
  </behaviors>
  <services>
   <service behaviorConfiguration="BOAutoApprovalWCFBehavior" name="BOAutoApprovalWCF">
    <endpoint address="" binding="wsHttpBinding" bindingConfiguration="TransportSecurity"
     contract="IBOAutoApprovalWCF">
     <identity>
      <dns value="localhost" />
     </identity>
    </endpoint>
    <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
   </service>
  </services>
   <bindings>
     <wsHttpBinding>
       <binding name="TransportSecurity">
         <security mode="Transport">
           <transport clientCredentialType="None" />
         </security>
       </binding>
     </wsHttpBinding>
   </bindings>
 </system.serviceModel>

相关文章:

  • 2021-06-20
  • 2021-12-27
  • 2021-07-09
  • 2021-11-16
  • 2021-07-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案