2009-08-28 18 views
0

リモートマシンのWindowsサービスでnetTcp WCFサービスが実行されています。 Windowsサービスは、Windowsサービスのため.configファイルは、WCFは、私が実行したときに今netTcp WCFバインディングのデバッグ

<security mode="None"> 
      <transport clientCredentialType="None" /> 
      <message clientCredentialType="None" /> 
</security> 

でホストされているmydomain\u2

ユーザーとして実行されている

svcutil.exe http://wcfhostmachine:8000/MyWCFService?wsdl

クライアントoutput.configには次のセキュリティポートがありますイオン:

<security mode="None"> 
    <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" /> 
    <message clientCredentialType="Windows" /> 
</security> 

これらは異なっています。 WHY ??私はサーバとマッチするためにクライアントを変更すべきですか?

私はまだWCFサービスに命令を送ることができ、それらが処理されていますが、Visual Studioがリモートホスト上で実行されているWCFコードにステップしようとしたとき、私は悪名高いが出る:自動的にできません

デバッグ '....'。サーバーマシンへの接続に失敗しました。ターゲットコンピュータ上のVisual Studioリモートデバッガは、このコンピュータに接続できません。対象のコンピュータにDNSが正しく構成されていることを確認します。

言うまでもなく、DNSは問題ありません。

Visual Studioがmydomain\u1として実行されており、サービスがリモートマシン上でmydomain\u2として実行されているため、私がこの状況に遭遇している理由を考えることができる唯一の理由があります。

過去にこの問題に直面したことはありますか?

以下のホストサービスのための私のApp.configである

MORE INFO。 mexエンドポイントがないのでこの問題に遭遇することはありますか?

<?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
    <system.serviceModel> 
    <services> 
     <service name="my.Indexer" behaviorConfiguration="IndexerServiceBehavior"> 
     <host> 
      <baseAddresses> 
      <add baseAddress="http://hostmachine:8000/Indexer"/> 
      </baseAddresses> 
     </host> 
     <endpoint address="net.tcp://hostmachine:9000/Indexer" 
        binding="netTcpBinding" 
        bindingConfiguration="Binding1" 
        contract="my.IIndexer" /> 
     </service> 
    </services> 
    <bindings> 
     <netTcpBinding> 
     <binding name="Binding1" 
        hostNameComparisonMode="StrongWildcard" 
        sendTimeout="00:10:00" 
        maxReceivedMessageSize="65536" 
        transferMode="Buffered" 
        portSharingEnabled="false"> 
      <security mode="None"> 
      <transport clientCredentialType="None" /> 
      <message clientCredentialType="None" /> 
      </security> 

     </binding> 
     </netTcpBinding> 
    </bindings> 
    <behaviors> 
     <serviceBehaviors> 
     <behavior name="IndexerServiceBehavior"> 
      <serviceMetadata httpGetEnabled="true" httpGetUrl=""/> 
      <serviceDebug includeExceptionDetailInFaults="False" /> 
     </behavior> 
     </serviceBehaviors> 
    </behaviors> 
    </system.serviceModel> 
</configuration> 

答えて

2

これらは同じです。この場合は、両端にmode = "None"と指定してください。 <security>タグ内の残りの部分は、モードを[なし]に設定すると完全に無関係です。

svcutil.exeが作成する内容は、システムのデフォルトです。

マーク

+0

ありがとうございます - ありがとう。 他の人が私がまだデバッグできない理由についてチャイムできるかどうか、今質問を開いておきます.... – Matt

関連する問題