c# - localhost refusing connection in WCF -


i learning wcf(c#) while hosting wcf using console application. showing no errors when type http://localhost:8080/ in browser browser saying refusing connnection. please provide me solution.enter image description here

my code in configuration file given below

    <services>   <service name="myservice.mywservice" behaviorconfiguration="mexbehaviour">     <endpoint address="helloservice" binding="basichttpbinding" contract="myservice.imywservice">     </endpoint>     <endpoint address="helloservice" binding="nettcpbinding" contract="myservice.imywservice">     </endpoint>     <endpoint address="mex" binding="mexhttpbinding" contract="imetadataexchange" />     <host>       <baseaddresses>         <add baseaddress="http://localhost:8080" />         <add baseaddress="net.tcp://localhost:8090"/>       </baseaddresses>     </host>   </service> </services> <behaviors>   <servicebehaviors>     <behavior name="mexbehaviour">       <servicemetadata httpgetenabled="true" />     </behavior>   </servicebehaviors> </behaviors> 

the error getting due browser being unable locate website localhost. should visit localhost addresses using following format.

http[s]://localhost:<port number>

you can view localhost addresses visiting 127.0.0.1 loopback address localhost.

127.0.0.1:8080


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -