无法使用svcutil创建代理 [英] not able to create proxy using svcutil

查看:100
本文介绍了无法使用svcutil创建代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我坚持在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>

推荐答案

您可以尝试这种行为而不是您的行为:  

Can you try this behavior instead of your one:  

 < serviceBehaviors>           


           < behavior name =" mex">

             < serviceMetadata />

               < serviceDebug

                  includeExceptionDetailInFaults =" False" />

           < / behavior>

         < / serviceBehaviors>

 <serviceBehaviors>           
           <behavior name="mex">
             <serviceMetadata />
               <serviceDebug
                  includeExceptionDetailInFaults="False"/>
           </behavior>
         </serviceBehaviors>

 

Damir


这篇关于无法使用svcutil创建代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆