WCF web.config file for SSL
-
Monday, June 11, 2012 3:12 AM
Hi All,
I am using web application with claims based authentication with windows authentication enabled and integrated windows authentication type is 'NTLM' and SSL is configured for that web application
Below is my WCF web.config file .The WCF service is deployed to ISAPI folder
<configuration> <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name="MyServiceTypeBehaviors" > <serviceMetadata httpsGetEnabled="true" /> </behavior> </serviceBehaviors> </behaviors> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> <services> <service name="Service" behaviorConfiguration="MyServiceTypeBehaviors"> <endpoint address="" binding="wsHttpBinding" bindingConfiguration="TransportSecurity" contract="IService" /> <endpoint contract="IMetadataExchange" binding="mexHttpsBinding" address="mex" /> </service> </services> <bindings> <wsHttpBinding> <binding name="TransportSecurity"> <security mode="Transport"> <transport clientCredentialType="Ntlm"/> </security> </binding> </wsHttpBinding> </bindings> </system.serviceModel>
I am receiving below error when consumed in console application
ServiceClient dc=new ServiceClient();
dc.MehtodName();
Error:-The HTTP request is unauthorized with client authentication scheme 'Ntlm'.
The authentication header received from the server was 'NTLM'.
Thanks in advance,
Spoorthi
- Edited by spoorthi Monday, June 11, 2012 6:30 PM
All Replies
-
Tuesday, June 12, 2012 9:32 AMModerator
-
Friday, June 22, 2012 11:53 PM
- Marked As Answer by Qiao WeiMicrosoft Contingent Staff, Moderator Monday, June 25, 2012 1:56 AM
-
Saturday, June 23, 2012 5:09 AM
Refer the post
http://blogs.msdn.com/b/ashishme/archive/2006/11/10/ntlm-vs-kerberos-windows-communication-foundation.aspx
you need to change the authentication of your web application to "Kerbose'.
Regards, Dharnendra Shah, MCTS,MCPD - Sharepoint 2010 Application Development Blog: http://ds-sharepoint2010blogs.blogspot.in/ Email: shahdg2003@gmail.com
- Marked As Answer by Qiao WeiMicrosoft Contingent Staff, Moderator Monday, June 25, 2012 1:57 AM

