a server error in the "/WCF" application. There is no protocol binding that matches the given address "http://localhost:8001/WCFService.HelloService". Protocol bindings are configured at the site level in IIS or was configurations.
This error indicates that the configuration file is not configured correctly.
Error:
<system.serviceModel>
<services>
<service behaviorconfiguration= "Wcfservice.service1behavior"
Name= "Wcfservice.helloservice" >
<!--<baseAddresses>
<add baseaddress= "http://localhost:8001/"/>
</baseAddresses>
<endpoint address= "Http://localhost:8001/HelloService" binding= "Wshttpbinding" Wcfservice.ihelloservice ">
</endpoint>
<!--<endpoint address= "Mex" binding= "mexHttpBinding" contract= "IMetadataExchange"/>-->
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name= "Wcfservice.service1behavior" >
<!--to avoid leaking metadata information, set the following value to False before deployment and delete the metadata endpoint above-->
<servicemetadata httpgetenabled= "true"/>
<!--to receive fault exception details for debugging, set the following value to True. Set to false before deployment to avoid leaking exception information-->
<servicedebug includeexceptiondetailinfaults= "false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
Correct:
<system.serviceModel>
<services>
<service behaviorconfiguration= "Wcfservice.service1behavior"
Name= "Wcfservice.helloservice" >
<baseAddresses>
<add baseaddress= "http://localhost:8001/"/>
</baseAddresses>
<endpoint address= "HelloService" binding= "Wshttpbinding" contract= "Wcfservice.ihelloservice" >
</endpoint>
<!--<endpoint address= "Mex" binding= "mexHttpBinding" contract= "IMetadataExchange"/>-->
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name= "Wcfservice.service1behavior" >
<!--to avoid leaking metadata information, set the following value to False before deployment and delete the metadata endpoint above-->
<servicemetadata httpgetenabled= "true"/>
<!--to receive fault exception details for debugging, set the following value to True. Set to false before deployment to avoid leaking exception information-->
<servicedebug includeexceptiondetailinfaults= "false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>