wcf tcp 10061 [英] wcf tcp 10061
本文介绍了wcf tcp 10061的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
我尝试进行我的第一个wcf服务
它在局域网中工作非常好,但是当我尝试将其引发互联网时,我收到错误tcp 10061,我尝试运行该服务的PC位于cisco dsl路由器后面,并且我已将路由器配置为从端口发送所有传入流量49999至192.168.16.2:49999,它可以正常工作,我有另一个非wcf应用程序,并且可以正常工作
有人可以帮我吗
app.config正在关注
非常感谢
伺服器:
Hello
I try to make my first wcf service
It works very good in a lan but when i try to call it throw the internet i get the error tcp 10061 the pc i try to run the service is behind a cisco dsl router and i have configured the router to send all incoming trafic from port 49999 to 192.168.16.2:49999 it works i had another app non wcf and it had worked
can somebody help me
the app.config is following
thanks a lot
server:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation debug="true" />
</system.web>
<!-- When deploying the service library project, the content of the config file must be added to the host''s
app.config file. System.Configuration does not support config files for libraries. -->
<system.serviceModel>
<services>
<service behaviorConfiguration="Top_Sales_Server.salesserviceBehavior"
name="Top_Sales_Server_library.TopActions">
<endpoint address="" binding="netTcpBinding" bindingConfiguration=""
contract="Top_Sales_Server_library.TopIActions">
</endpoint>
<endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://0.0.0.0:49999/Top_Sales_Server" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="Top_Sales_Server.salesserviceBehavior">
<serviceMetadata httpGetEnabled="false" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
客户
client
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.diagnostics>
<sources>
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog"/>
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information" />
</switches>
<sharedListeners>
<add name="FileLog"
type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
initializeData="FileLogWriter"/>
</sharedListeners>
</system.diagnostics>
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="NetTcpBinding_TopIActions" closeTimeout="00:10:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="10"
maxBufferPoolSize="524288" maxBufferSize="16777216" maxConnections="10"
maxReceivedMessageSize="16777216">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Transport">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
<message clientCredentialType="Windows" />
</security>
</binding>
</netTcpBinding>
</bindings>
<client>
<endpoint address="net.tcp://*.*.*.*:49999/Top_Sales_Server"
binding="netTcpBinding" bindingConfiguration="NetTcpBinding_TopIActions"
contract="ServiceReference1.TopIActions" name="NetTcpBinding_TopIActions">
</endpoint>
</client>
</system.serviceModel>
</configuration>
推荐答案
经过大量搜索,我发现我必须在域中授权我,因为我可以与wcf服务进行通信
所以我不得不发送域名,用户名和密码
after a lot of search i founded that i have to authorize me in the domain befor i can communicate with the wcf service
so i haded to sent the domainname, username and password
这篇关于wcf tcp 10061的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文