これはエラーが発生しています:WCFセキュリティ実装エラー
メッセージを処理できませんでした。これは、アクション「http://tempuri.org/xxxxxx」が正しくないか、メッセージに無効または有効期限が切れているセキュリティコンテキストトークンが含まれているか、またはバインディング間に不一致があるためです。セキュリティコンテキストトークンは、サービスが非アクティブなためにチャネルを強制終了した場合は無効になります。途中でサービスエンドポイントのは、HERE
を結合に受信タイムアウトを増やすアイドルセッションを中断からサービスを防ぐためには、私のweb.configファイルコピーは次のとおりです。
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
</system.web>
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="wsUserNameToken">
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="None"/>
<message clientCredentialType="UserName"/>
</security>
</binding>
</wsHttpBinding>
</bindings>
<services>
<service name="ServiceName" behaviorConfiguration="userNameTokenBehavior">
<endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsUserNameToken" name="userNameTokenService" contract="ContractName"/>
<endpoint address="mex" binding="wsHttpBinding" bindingConfiguration="wsUserNameToken" name="MexHttpsBindingEndpoint" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="userNameTokenBehavior">
<serviceMetadata httpsGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
<serviceCredentials>
<serviceCertificate findValue="xxxxxxxxxxxxx" x509FindType="FindByThumbprint" storeLocation="LocalMachine" storeName="My" />
<userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="xxxxx.xxxxx.UsernameValidator, App_Code"/>
</serviceCredentials>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
誰もが私の設定ファイルでいただきました!間違って把握していただけますか?
WCFはクライアントとサーバーの間のダンスです。クライアントの設定も含めることができますか? –
サービス名属性とエンドポイント契約属性は完全修飾名である必要があります。また、あなたのサービスのトレースを有効にして、失敗する理由を知ることができます。 – Rajesh