2012-05-07 56 views
0

私は、次のエラーを取得しています指定されたURIスキーム「http」は無効です。期待「HTTPS」

<system.serviceModel> 
<bindings> 
    <basicHttpBinding> 
    <binding name="BasicHttpBinding_webservice" closeTimeout="00:01:00" 
     openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 
     allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" 
     maxBufferSize="102400000" maxBufferPoolSize="102400000" maxReceivedMessageSize="102400000" 
     messageEncoding="Mtom" textEncoding="utf-8" transferMode="Buffered" 
     useDefaultWebProxy="true"> 
     <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="102400000" 
     maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 
     <security mode="TransportCredentialOnly"> 
     <transport clientCredentialType="Basic" proxyCredentialType="None" 
      realm="" /> 
     <message clientCredentialType="UserName" algorithmSuite="Default" /> 
     </security> 
    </binding> 
    </basicHttpBinding> 
</bindings> 
<client> 
    <endpoint address="http://systemname/ProxyService/Service.svc" 
    binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_webservice" 
    contract="ABC.webservice" name="BasicHttpBinding_webservice" /> 
</client> 

を次のように私は勝利のサービス設定ファイルを持っています。指定されたURIスキーム「http」は無効です。予想される「https」。 パラメータ名:via
バインディングまたはセキュリティ設定を変更する必要がありますか? 途中でSSL証明書が無効になっています。

答えて

1

セキュリティ設定でUserNameOverTransportを設定したようです - > WCFでは、この設定を使用してパスワードが平文で送信されるため、HTTPSバインディングを使用してのみ許可されます。

セキュリティの賢明な良い機能は、開発中に少し厄介なことができます。

0

をして.webプロジェクトのためset as start projectを使用し、今では正常に動作している:あなたは無担保ユーザーを送信する正当な理由がある場合は/あなたがClearUsernameBinding経由でメッセージレベルでそれを行うことができ渡します。

関連する問題