解决使用CSLA4.1 发布后提示SecurityNegotiationException

来源:互联网 发布:淘宝销售授权书 编辑:程序博客网 时间:2024/06/05 19:40

采用CSLA4.1开发了一个winform的小系统,发布到客户机时,采用代理方式的数据访问,报错,在windows的事件日志中发现,

System.ServiceModel.Security.SecurityNegotiationException,原因是WCF的安全认证方式

解决办法: in server web.config

One easy solutionis to turn of WCF security in your <system.serviceModel> section

<bindings>
<wsHttpBinding>
<binding name="Transport">
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
<binding name="NoSecurity">
<security mode="None"/>
</binding>
</wsHttpBinding>
</bindings>


记住与csla的配置关联啊,binding name

--主要配置,取消安全认证

The problem was in:<security mode="None"> in server config

原创粉丝点击