2011-06-24 3 views
4

私のWCFサービスのmaxClockSkewを5分(デフォルト)以上に設定しようとしていますが、私は、それをauthenticationMode = "UserNameOverTransport"と一緒に設定したいときに何か間違っているように見えます。サーバーがhttpsで動作しているため、カスタム認証プロバイダを使用してユーザーを認証しますので、これが必要です。サーバーの初期化にエラーはありませんが、値は5分(00:05:00)から変更されません。クライアント側からの迷惑なメッセージが常に表示されますmaxClockSkewは5分を超えていませんか?(明示的に設定しても)

セキュリティタイムスタンプは無効ですその作成時間( '2011-06-24T15:31:22.338Z')が将来であるためです。現在の時刻は '2011-06-24T15:21:30.923Z'であり、クロックのスキューは'00:05:00 'です。ここで

あなたは私の全体のサービスの設定ファイルを参照することができます

<?xml version="1.0"?> <configuration> 
<system.web> 
    <compilation debug="true"/> 
</system.web> 
<system.serviceModel> 
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true"> 
    </serviceHostingEnvironment> 
    <services> 
     <service name="MYSERVICE"> 
      <endpoint address="" binding="customBinding" bindingConfiguration="HTTP" contract="MYCONTRACT"> 
       <identity> 
        <dns value="https://localhost"/> 
       </identity> 
      </endpoint> 
      <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/> 
      <host> 
       <baseAddresses> 
        <add baseAddress="https://localhost/service"/> 
       </baseAddresses> 
      </host> 
     </service> 
    </services> 
    <behaviors> 
     <serviceBehaviors> 
      <behavior> 
       <serviceMetadata httpGetEnabled="False" httpsGetEnabled="True" /> 
       <serviceDebug includeExceptionDetailInFaults="False"/> 
       <serviceCredentials> 
        <userNameAuthentication userNamePasswordValidationMode="Custom" 
         customUserNamePasswordValidatorType="CUSTOMServiceCredentialsValidator, ASSEMBLY" /> 
       </serviceCredentials> 
      </behavior> 
     </serviceBehaviors> 
    </behaviors> 
    <bindings> 
     <customBinding> 
      <binding name="HTTP"> 
       <transactionFlow /> 
       <textMessageEncoding> 
        <readerQuotas maxStringContentLength="2147483647"/> 
       </textMessageEncoding> 
       <security authenticationMode="SecureConversation"> 
        <localClientSettings maxClockSkew="00:10:00"/> 
        <localServiceSettings maxClockSkew="00:10:00"/> 
        <secureConversationBootstrap authenticationMode="UserNameOverTransport"> 
         <localClientSettings maxClockSkew="00:10:00"/> 
         <localServiceSettings maxClockSkew="00:10:00"/> 
        </secureConversationBootstrap> 
       </security> 
       <httpsTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"/> 
      </binding> 
     </customBinding> 
    </bindings> 
</system.serviceModel> 
<startup> 
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> 
</startup> 

私は何をしないのですか?誰もこの問題に直面していますか?私はこの状況に直面した多くの人々を見つけられませんでした。アドバンス

おかげ

あなたが明示的に新しいバインディングを設定する必要がペドロ

答えて

関連する問題