元数据包含无法解析的引用:“net.tcp://192.168.1.105:1314/LoginService”。
套接字连接已中止。这可能是由于处理消息时出错或远程主机超过接收超时或者潜在的网络资源问题导致的。本地套接字超时是“00:04:59.8281250”。
远程主机强迫关闭了一个现有的连接。
如果该服务已在当前解决方案中定义,请尝试生成该解决方案,然后再次添加服务引用。
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="LoginServiceBinding" transactionFlow="true"/>
</netTcpBinding>
</bindings>
<services>
<service name="Services.CLoginService" behaviorConfiguration="LoginBehavior">
<host>
<baseAddresses>
<add baseAddress="net.tcp://127.0.0.1:1314/LoginService" />
</baseAddresses>
</host>
<endpoint address=""
binding="netTcpBinding" bindingConfiguration="LoginServiceBinding"
name="LoginServiceEndpoint" contract="Contracts.ILoginService" />
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="LoginBehavior">
<serviceMetadata httpGetEnabled="False" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>