繁体   English   中英

WCF服务器拒绝来自本地主机的连接

[英]WCF server rejects connections from localhost

我在计算机上运行的宿主应用程序内的net.tcp端口上运行了WCF服务-Windows 2003 64位。

该应用程序将接受来自同事计算机的连接以及来自WCF测试客户端的本地连接,并发送回适当的信息。 我还可以使用客户端连接到同事计算机上运行的服务。

不幸的是,它不允许我从计算机上运行的客户端连接到服务。 我同事计算机上的客户端与同事计算机上的服务器也发生故障。

令人困惑的是,该应用程序还运行另一项服务,该服务在本地和远程均可正常运行。

This works:  net.tcp://localhost:8736/EchoExcelServices/
This doesnt: net.tcp://localhost:8736/EchoExcelServices/Uploader

客户端应用程序中给出的异常是带有消息的SecurityNegotiatanException

The server has rejected the client credentials

在它里面(向下两层)是一个Win32Exception消息

The logon attempt failed

编辑:行为部分如下:

 <behaviors>
      <serviceBehaviors>
        <behavior name="EchoExcelLibrary.MetadataBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
          <behavior name="ImpersonationBehavior">
          <clientCredentials>
            <windows allowedImpersonationLevel="Impersonation"/>
          </clientCredentials>
        </behavior>
      </endpointBehaviors>

编辑2更改行为部分:

  <endpointBehaviors>
    <behavior name="ImpersonationBehavior">
    </behavior>
  </endpointBehaviors>

这是我们机器上DTC设置的问题。 现在解决了

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM