Hi ,
I am getting the following error
System.NotSupportedException: Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service.
Please c below config file.
<system.serviceModel>
<services>
<service name="StockServiceWCF.StockService" behaviorConfiguration="StockServiceWCF.Service1Behavior">
<host>
<baseAddresses>
<add baseAddress="http//localhost/StockService"/>
</baseAddresses>
</host>
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpointBinding" contract="StockServiceWCF.IStockService"></endpoint>
<endpoint address="mex" binding="basicHttpBinding" bindingConfiguration ="BasicHttpEndpointBinding" contract="IMetadataExchange"/>
</service>
</services>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpEndpointBinding">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Windows"/>
</security>
</binding>
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="StockServiceWCF.Service1Behavior">
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true" />
<!-- 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 -->
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>