2011-07-14 16 views
0

私はデュプレックス通信を使用するWCFサービスを開発中で、開発マシンのlocalhost以外の場所で動作するようになっています。WCFデュプレックスサービスのSOAPセキュリティ交渉エラー

どんなに私は何をすべきか、それが次のエラーを思い付くん:

{"Security Support Provider Interface (SSPI) authentication failed. The server may not be running in an account with identity 'host/crpnyciis20e'. If the server is running in a service account (Network Service for example), specify the account's ServicePrincipalName as the identity in the EndpointAddress for the server. If the server is running in a user account, specify the account's UserPrincipalName as the identity in the EndpointAddress for the server."}

次のように私のサービスのWeb.configは次のとおりです。

<?xml version="1.0"?> 
<configuration>  
    <system.web> 
    <compilation debug="true" targetFramework="4.0" /> 
    </system.web> 
    <system.serviceModel> 
    <protocolMapping> 
     <add scheme="http" binding="wsDualHttpBinding"/> 
    </protocolMapping> 
    <behaviors> 
     <serviceBehaviors> 
     <behavior> 
      <serviceMetadata httpGetEnabled="true"/> 
      <serviceDebug includeExceptionDetailInFaults="true"/> 
     </behavior> 
     </serviceBehaviors> 
    </behaviors> 
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> 
    </system.serviceModel> 
    <system.webServer> 
    <modules runAllManagedModulesForAllRequests="true"/> 
    </system.webServer> 
</configuration> 

そして、私のクライアントのApp.configファイル:

<?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
    <system.serviceModel> 
     <bindings> 
      <wsDualHttpBinding> 
       <binding name="WSDualHttpBinding_IMessagingService" closeTimeout="00:01:00" 
        openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 
        bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" 
        maxBufferPoolSize="524288" maxReceivedMessageSize="65536" 
        messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"> 
        <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 
         maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 
        <reliableSession ordered="true" inactivityTimeout="00:10:00" /> 
        <security mode="Message"> 
         <message clientCredentialType="Windows" negotiateServiceCredential="true" 
          algorithmSuite="Default" /> 
        </security> 
       </binding> 
      </wsDualHttpBinding> 
     </bindings> 
     <client> 
      <endpoint 
       binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_IMessagingService" 
       contract="CTMessagingServiceReference.IMessagingService" name="WSDualHttpBinding_IMessagingService"> 
       <identity> 
        <userPrincipalName value="nbdfp2k" /> 
       </identity> 
      </endpoint> 
     </client> 
    </system.serviceModel> 
</configuration> 

私はこの問題を回避するために何ができるでしょうか?診断に役立つ他のコードがある場合は、私に知らせてください...残りのどれも実際に私が知っている接続設定とは関係ありません。

+0

は、Active Directoryドメイン内のコンピュータはありますか?ユーザーはそのドメインのサービスに接続していますか? –

+0

はい、広告に掲載されています。 Webサービスは現在、サービスユーザーアカウントの下にあるDEV IISボックスで実行されています。 –

+0

サービスドメインアカウントの名前は 'nbdfp2k'ですか? –

答えて

1

これが問題を解決するかどうかはわかりませんが、クライアントエンドポイントのアドレスとバインディング構成のクライアントベースアドレスが不足しています(エンドポイントアドレスと異なるはずです)。

0

これはそれを行うための理想的な方法ですが、あなたのクライアントの設定から、以下の「アイデンティティ」ノードを削除してみてくださいすることができますかどうかわからない -

<identity> 
    <userPrincipalName value="nbdfp2k" /> 
</identity> 
関連する問題