当前位置:编程学习 > C#/ASP.NET >>

WCF service reference更新后配置文件有问题

很奇怪,WCF client更新引用后在配置文件中生成了两个一样的endpoint 和binding,就是命名一个叫AccountList,一个叫AccountList1.我对照了生成的两个binding(AccountList1和AccountList配置完全一样)。有人知道什么原因吗?请回复。谢谢!

   <endpoint address="http://localhost:4114/Service.svc" binding="wsHttpBinding"
    bindingConfiguration="AccountList1" contract="Service.IAccountListService"
    name="AccountList1">
    <identity>
     <userPrincipalName value="admin-PC\admin" />
    </identity>
   </endpoint>

   <endpoint address="http://localhost:4114/Service.svc" binding="wsHttpBinding"
    bindingConfiguration="AccountList" contract="Service.IAccountListService"
    name="AccountList">
    <identity>
     <userPrincipalName value="admin-PC\admin" />
    </identity>
   </endpoint>
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,