Click here to Skip to main content
15,922,696 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,
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
XML
  <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBindingConfig"  >
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows"/>
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>

and endpoint is configured like

<service behaviorConfiguration="SvcBehavior" name="MyService"> <endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBindingConfig"  name="MyServiceEndpoint" contract="IMyService">
        </endpoint>
      </service>

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.

Kindly suggest
Posted
Updated 25-Feb-11 3:26am
v2

1 solution

i suppose you need a certificate... (i suppose) :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900