I am trying to establish security in the web.config file for the WCF service hosted in IIS, but the error Receiving messages:
Security settings for this service require 'Anonymous' authentication but it is not enabled for the IIS application that hosts this service.
I blog (Nicholas Allen) and it appears that this is the path I need to take. However, I am using "binary message encoding" in custom binding for my Silverlight service, and in this way, I am not sure how to implement such a type of security like this. Binding currently appears in config:
& lt; Custombending & gt; & Lt; Compulsory name = "sunlight binary binding" & gt; & Lt; BinaryMessageEncoding / & gt; & Lt; HttpTransport / & gt; & Lt; / Binding & gt; & Lt; / CustomBinding & gt;
Anyone have any experience getting Windows certification to work with custom binding using binary message encoding?
& lt; HttpTransport Authentication Search = "Talks" />
Works for me.
Make sure that you use the same restriction for your Mac endpoint:
& Lt; / Binding & gt; & Lt; / CustomBinding & gt; & Lt; / Binding & gt; & Lt; Services & gt; & Lt; Service name = "service" & gt; & Lt; Endpoint address = "" binding = "custombinding" binding configuration = "myCustomBinding" contract = "IService" /> & Lt; Endpoint address = "mex" binding = "custombinding" binding configuration = "myCustomBinding" contract = "IMATAdata Exchange" /> & Lt; / Services & gt; & Lt; / Services & gt;
Comments
Post a Comment