单步执行代码(net.tcp绑定) [英] Step Into Code (net.tcp binding)

查看:54
本文介绍了单步执行代码(net.tcp绑定)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一项服务,目前正在net.tcp上100%使用.我曾经使用过wsHTTP绑定.现在,我发现由于某种原因(我不知道为什么),我似乎无法使用net.tcp绑定进入代码.如果我仍然可以进入代码并仍然使用net.tcp绑定,将会很有帮助.我已经确认我的IDE并没有以某种方式切换到Release模式(这似乎忽略了断点).

我仍然可以在客户端应用程序中进行调试,但是当我尝试通过net.tcp绑定进入代码时,它不起作用.

服务器绑定配置是
< bindings>
     < netTcpBinding>
        < binding name ="AthenaBindingCfgTCP">
         <安全模式=运输"><             < transport protectionLevel =签名"/>
            < message clientCredentialType ="Windows"/>
         </security>
       </binding>
      </netTcpBinding>
    </bindings>
    <行为>
      < serviceBehaviors>
       <行为名称="AthenaIISHost.AthenaBehavior">
         < serviceMetadata httpGetEnabled ="true"; />
         < serviceDebug includeExceptionDetailInFaults ="true"; />
       </behavior>
      </serviceBehaviors>
    </行为>
    <服务>
      <!---->
      <服务行为配置="AthenaIISHost.AthenaBehavior".名称="Hyduke.Services.AthenaImplementation">
       <端点地址=" binding ="netTcpBinding"
             bindingConfiguration ="AthenaBindingCfgTCP"
            contract ="Hyduke.Services.AthenaServiceContract">
         < identity>
          < dns value =本地主机"/>
         </identity>
       </endpoint>    
       <端点地址="mex"; binding ="mexTcpBinding"名称="MEX" contract ="IMetadataExchange" />
     </service>
    </services>

如果有人遇到此错误并可以提供帮助,那就太好了.感谢提供的任何建议/帮助.

干杯,
B


---------------- -------------------------------------------------- --------------------------- 没有任何明示或暗示的担保,即发布/通过电子邮件发送的任何代码.

I have a service that is now currently working 100% with net.tcp.  I used to use the wsHTTP binding.  Now, I have found that for some reason (and I don't know why) I cannot seem to step into the code using the net.tcp binding.  It would be helpful if I could still step into the code and still use the net.tcp binding.  I have confirmed that my IDE has not somehow been switched to Release mode (which seems to ignore breakpoints). 

I can still debug in the client app, but when I try to step into the code via the net.tcp binding it does not work.

The server binding configuration is pasted below.
<bindings>
      <netTcpBinding>
        <binding name="AthenaBindingCfgTCP">
          <security mode="Transport">
            <transport protectionLevel="Sign"/>
            <message clientCredentialType="Windows"/>
          </security>
        </binding>
      </netTcpBinding>
    </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="AthenaIISHost.AthenaBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <services>
      <!---->
      <service behaviorConfiguration="AthenaIISHost.AthenaBehavior" name="Hyduke.Services.AthenaImplementation">
        <endpoint address="" binding="netTcpBinding"
                  bindingConfiguration="AthenaBindingCfgTCP"
                  contract="Hyduke.Services.AthenaServiceContract">
          <identity>
            <dns value="localhost"/>
          </identity>
        </endpoint>     
        <endpoint address="mex" binding="mexTcpBinding" name="MEX" contract="IMetadataExchange" />
      </service>
    </services>

If anyone has had this error and can help out that would be great.  I appreciate any advice/help that can be provided.

Cheers,
B


--------------------------------------------------------------------------------------------- No warranties are expressed or implied with any code being posted/emailed.

推荐答案

您是说在使用断点运行应用程序时-断点未命中吗?您是否在IDE中创建了其他任何简单的测试应用程序,并尝试调试并查看是否在该处遇到了断点?您应该能够调试和更改绑定,不要紧.
Are you saying that when you run your application with a breakpoint - the breakpoint is not hit? Have you created any other simple test application in the IDE and tried to debug and see if a breakpoint is hit there? You should be able to debug and changing the binding should not matter. 


这篇关于单步执行代码(net.tcp绑定)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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