wsHttpBinding“调用者未通过服务进行身份验证”

时间:2013-10-14 19:26:59

标签: asp.net wcf iis

我已经阅读了很多其他帖子,但没有人能够帮助我。我在Visual Studio的一个实例中运行WCF IIS项目,而在另一个实例中我有一个Web表单客户端。上面的错误是我在本地运行并且站点尝试连接到服务时得到的错误。当本地运行的同一客户端连接到服务器上时,运行在服务器上的完全相同的WCF代码。我无法弄清楚为什么。我试图启用跟踪但无法生成文件。这是我的客户端配置

 <client>
  <endpoint address="http://localhost:64974/Service1.svc/ws" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IService" contract="ServiceReference1.IService" name="WSHttpBinding_IService">
    <identity>
      <dns value="host"/>
    </identity>
  </endpoint>
</client>

这是WCF配置

 <services>    
  <service name="Service1">
    <endpoint address="ws" binding="wsHttpBinding" contract="IService">
      <identity>
        <dns value="host"/>
      </identity>
    </endpoint>
  </service>
</services>

我已更改服务名称以删除私人数据

1 个答案:

答案 0 :(得分:0)

我现在已经开始工作了。不确定问题是什么。我创建了一个新客户端并将其连接到本地连接到WCF Web项目。两者都使用本地开发服务器。谢谢大家的帮助

相关问题