I am struggling hard with getting WCF service running on IIS on our server. After deployment I end up with an error message:
Security settings for this service r
It worked for me when I remove 'mex' endpoint and also set clientCredentialType = 'Ntlm' I was hosting my WCF inside SharePoint.
just use your service bindings for mex too.
So change your current config :
<endpoint address="mex" binding="mexHttpBinding" name="mex" contract="IMetadataExchange"></endpoint>
to
<endpoint address="mex" binding="webHttpBinding" bindingConfiguration="default" name="mex" contract="IMetadataExchange"></endpoint>
That should solve the problem