WCF authentication problem
Hi
I'm new to WCF. After publishing a simple WCF service into the server I get the following error
Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service
I guess that I need to change the web.config file but I don't know how, my web.config file looks like this:
<?xml version="1.0"?> <configuration> <system.web> <compilation targetFramework="4.0" /> <customErrors mode="Off"/> </system.web> <system.serviceModel> <behaviors> <serviceBehaviors> <behavior> <!-- To avoid disclosing metadata information, set the value below to false 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 --> <serviceDebug includeExceptionDetailInFaults="false"/> </behavior> </serviceBehaviors> </behaviors> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> <!-- To browse web app root directory during debugging, set the value below to true. Set to false before deployment to avoid disclosing web app folder information. --> <directoryBrowse enabled="true"/> </system.webServer> </configuration>