c# - WCF service - Getting Runtime error in basicHttpBinding configuration transport clientCredentialType to Basic -


I have created a web service and I'm basic use HttpBinding but the thing is that when I set type client credentials I use the service, but if I'm set to root / windows then I'm getting an error like "runtime error" IIS basic authentication is used. I need security for basic Httpbinding, how to solve this problem.

The web in the code. Config:

  & lt; Services & gt; & Lt; Service name = "healthcare service" transaction support = "behavioral service 1" & gt; & Lt; Endpoint address = "" contract = "iHealthCareService" binding = "basic HttpBinding" binding = "basic HttpBinding1" /> & Lt; Endpoint Address = "Max" contract = "IMATAdataXchange" Binding = "MaxHttpending" /> & Lt; / Services & gt; & Lt; / Services & gt; & Lt; Binding & gt; & Lt; BasicHttpBinding & gt; & Lt; Bond name = "original HttpBinding1" & gt; & Lt; Safety Mode = "Transport Credential Only" & gt; & Lt; Transportation Customer Credential Type = "Basic" /> & Lt; / Safety & gt; & Lt; / Binding & gt; & Lt; / BasicHttpBinding & gt; & Lt; / Binding & gt; & Lt; Behavior & gt; & Lt; ServiceBehaviors & gt; & Lt; Behavior Name = "Behavior_Service1" & gt; & Lt; Service trafficking maximally session = "10000" /> & Lt; ServiceMetadata httpGetEnabled = "true" /> & Lt; Service debug includes ExceptionDetailInFaults = "true" /> & Lt; / Behavior & gt; & Lt; / ServiceBehaviors & gt; & Lt; / Behavior & gt;  

error screen shot: enter image description here

Enable tracing on WCF server. Trace should give you enough information to troubleshoot the problem.

If this client works with CredentialType = None, your client is not properly configured - the configuration of the client and the server must be compatible.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -