Note that there are some explanatory texts on larger screens.

plurals
  1. POcan I have a WCF binding that goes through SSL (using https) with transport security set to none?
    text
    copied!<p>Greets. I realize this might be seen as a duplicate question as <a href="https://stackoverflow.com/questions/189623/wcf-transport-security-with-no-authentication">this</a> but I'm getting a different error.</p> <p>My IIS is setup to use SSL. My service is setup relatively simple. Just a simple log in service.</p> <p>When I try to navigate directly to the svc file on the host machine I get this error</p> <p><em>Service cannot be activated due to an exception during compilation. The exception message is: Security settings for this service require Windows Authentication but it is not enabled for the IIS application that hosts this service.</em></p> <p>I don't want to do any authentication when accessing this particular service. Shouldn't I be able to use HTTPS binding with Transport message creds and client authentication set to none?</p> <p>I have a certificate setup to comply with SSL and that seems to be fine. It's just this authentication stuff that's in the way now.</p> <pre><code> &lt;system.serviceModel&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="DefaultBehaviour"&gt; &lt;serviceMetadata httpsGetEnabled="true" /&gt; &lt;serviceCredentials&gt; &lt;serviceCertificate findValue="xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx" storeLocation="LocalMachine" storeName="My" x509FindType="FindByThumbprint" /&gt; &lt;/serviceCredentials&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;bindings&gt; &lt;wsHttpBinding&gt; &lt;binding name="wsBinding"&gt; &lt;security mode="Transport"&gt; &lt;message clientCredentialType="None" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/wsHttpBinding&gt; &lt;mexHttpsBinding&gt; &lt;binding name="mex" /&gt; &lt;/mexHttpsBinding&gt; &lt;/bindings&gt; &lt;services&gt; &lt;service behaviorConfiguration="DefaultBehaviour" name="Web.Login.LoginService"&gt; &lt;endpoint name="wsBinding" address="https://staging.system.com/System/LoginService/LoginService.svc" binding="wsHttpBinding" bindingConfiguration="wsBinding" contract="Web.Login.IOLELoginService" /&gt; &lt;endpoint address="mex" binding="mexHttpsBinding" bindingConfiguration="mex" name="mex" contract="IMetadataExchange" /&gt; &lt;/service&gt; &lt;/services&gt; </code></pre> <p></p>
 

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