问题描述
我坚持在Appfabric上托管net.Tcp绑定应用程序。即使我无法使用svcutil创建代理。我得到连接拒绝错误。请帮忙。
i am stuck with hosting net.Tcp binding application on Appfabric. Even i am not able to create proxy using svcutil. i get connection rejected error. please help.
这是我的配置文件。
<configuration>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="mex">
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service name="Microsoft.Samples.NetTcp.service" behaviorConfiguration ="mex">
<endpoint address="net.tcp://localhost:6587/CalculatorService/"
binding="netTcpBinding"
bindingConfiguration="TestBinding"
name="RoleEndPoint"
contract="Microsoft.Samples.NetTcp.ICalculator" >
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint
address="mex"
binding="mexTcpBinding"
name="MEX"
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:6587/CalculatorService/" />
</baseAddresses>
</host>
</service>
</services>
<bindings>
<netTcpBinding>
<binding name="TestBinding" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" portSharingEnabled="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None" />
</binding>
</netTcpBinding>
</bindings>
</system.serviceModel>
</configuration>
推荐答案
< serviceBehaviors>
< behavior name =" mex">
< serviceMetadata />
< serviceDebug
includeExceptionDetailInFaults =" False" />
< / behavior>
< / serviceBehaviors>
<serviceBehaviors>
<behavior name="mex">
<serviceMetadata />
<serviceDebug
includeExceptionDetailInFaults="False"/>
</behavior>
</serviceBehaviors>
Damir
这篇关于无法使用svcutil创建代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!