Hi guys,i give an error when connect my wcf service,
The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8)
My wcf service config file below this:
<?xml version="1.0"?>
<configuration>
<customErrors mode="Off">
</customErrors>
<system.serviceModel>
<services>
<service name="WcfService1.Service1" behaviorConfiguration="WcfService1.Service1Behavior">
<!-- Service Endpoints -->
<endpoint address="http://127.0.0.1/ChickenService/Service1.svc" binding="basicHttpBinding" contract="WcfService1.IService1">
<identity>
<dns value="127.0.0.1"/>
</identity>
</endpoint>
<host>
<baseAddresses>
<add baseAddress="http://127.0.0.1/"/>
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="WcfService1.Service1Behavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
How can i solve this problem?