码迷,mamicode.com
首页 > 其他好文 > 详细

WCF:调用方未由服务器进行身份验证

时间:2016-05-06 20:26:58      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:

服务器webconfig端配置文件,红色部分为添加部分

<system.serviceModel>  

<bindings>      

<wsHttpBinding>        

<binding name="NoneSecurity"  maxBufferPoolSize="12000000" maxReceivedMessageSize="12000000" useDefaultWebProxy="false">           <readerQuotas maxStringContentLength="12000000" maxArrayLength="12000000"/>           <security mode="None"/>        

</binding>      

</wsHttpBinding>    

</bindings>

    <services>    

<service name="WcfService2.Service1" behaviorConfiguration="WcfService2.Service1Behavior">     

<!-- Service Endpoints -->     

<endpoint address="" binding="wsHttpBinding" bindingConfiguration="NoneSecurity" contract="WcfService2.IService1">      

------------------------------------------

客户端将security配置改为<security mode="None"/>

WCF:调用方未由服务器进行身份验证

标签:

原文地址:http://www.cnblogs.com/tianciliangen/p/5466920.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!