Tuesday, 6 August 2013

WCF EndPoints not working with IIS hosting

WCF EndPoints not working with IIS hosting

I have following settings
<services>
<service name="HelloWCFServiceClass.clsHelloWCFServiceClass" >
<host>
<baseAddresses>
<add
baseAddress="http://localhost:6789/IISHosting/HelloWorldISSFostedService.svc"/>
</baseAddresses>
</host>
<endpoint address="" binding="wsHttpBinding"
contract="HelloWCFServiceContract.IHelloWCFServiceContract" />
<endpoint address="/test" binding="basicHttpBinding"
contract="HelloWCFServiceContract.IHelloWCFServiceContract"/>
</service>
</services>
I can open http://{ServerName}:6789/HelloWorldISSHostedService.svc
But getting "The webpage cannot be found" error ,while trying to access
through end point like
http://{ServerName}:6789/HelloWorldISSHostedService.svc/test.

No comments:

Post a Comment