Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 25, 2011 09:57 AM by amit29
Feb 25, 2011 09:57 AM|LINK
We have WCF services hosted on IIS 6.0, Win Server 2003,.net 3.5 sp1 with Integrated windows authentication enabled, Anonymous access disabled on both staging and production server.
And binding in wcf web.config is
<binding name="BasicHttpBindingConfig" >
and endpoint is configured like
<service behaviorConfiguration="SvcBehavior" name="MyService">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBindingConfig" name="MyServiceEndpoint" contract="IMyService">
This setting works perfect in staging server, but when we moved services to production, and tried browsing WCF service, we got following error.
"Security settings for this service requires Windows authentication but it is not enabled for IIS application that hosts this service."
but it is enabled in our case in both IIS and config file.
We have also verified IIS network authentication on both staging and production server using following command
"cscript adsutil.vbs get w3svc/WebSite/root/NTAuthenticationProviders"
It returns " The parameter NTAuthenticationproviders is not set at this node".
With the above settings in production environment we got following error on client
"The remote server returned error: (401) unauthorized.
But everything works fine on staging.