Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I use WCF with only basichttpbinding, SSL and Basic Authentication in IIS?
    primarykey
    data
    text
    <p>Is it possible to setup a WCF service with SSL and Basic Authentication in IIS using only BasicHttpBinding-binding? (I can’t use the wsHttpBinding-binding)</p> <p>The site is hosted on IIS 7, with the following authentication set up:</p> <pre><code> - Anonymous access: off - Basic authentication: on - Integrated Windows authentication: off !! </code></pre> <p>Service Config:</p> <pre><code>&lt;services&gt; &lt;service name="NameSpace.SomeService"&gt; &lt;host&gt; &lt;baseAddresses&gt; &lt;add baseAddress="https://hostname/SomeService/" /&gt; &lt;/baseAddresses&gt; &lt;/host&gt; &lt;!-- Service Endpoints --&gt; &lt;endpoint address="" binding="basicHttpBinding" bindingNamespace="http://hostname/SomeMethodName/1" contract="NameSpace.ISomeInterfaceService" name="Default" /&gt; &lt;endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/&gt; &lt;/service&gt; &lt;/services&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior&gt; &lt;!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --&gt; &lt;serviceMetadata httpsGetEnabled="true"/&gt; &lt;!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information --&gt; &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt; &lt;exceptionShielding/&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; </code></pre> <p>I tried 2 types of bindings with two different errors:</p> <p>1 - IIS Error: 'Could not find a base address that matches scheme http for the endpoint with binding BasicHttpBinding. Registered base address schemes are [https].</p> <pre><code>&lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding&gt; &lt;security mode="TransportCredentialOnly"&gt; &lt;transport clientCredentialType="Basic"/&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; </code></pre> <p>2 - IIS Error: Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service.</p> <pre><code>&lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding&gt; &lt;security mode="Transport"&gt; &lt;transport clientCredentialType="Basic"/&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; </code></pre> <p>Does somebody know how to configure this correctly? (if possible?) </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload