Click here to Skip to main content
15,901,122 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have hosted my WCF service in iis using net.tcp binding and when i browse i can see the service,but when i browse the same in my application i am getting an error like

Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].

Can anyone help me with this??

C#
<service behaviorConfiguration="Servicebehavior" name="WCftestnettcp.Service1">
       <endpoint address="" binding="netTcpBinding" bindingConfiguration="NewBinding0" name="tcpbind" contract="WCftestnettcp.IService1" />
       <endpoint address="mex" binding="mexTcpBinding" bindingConfiguration="" name="mextcp" contract="IMetadataExchange" />
       <host>
         <baseAddresses>
           <add baseAddress="net.tcp://XXXX-pc:8080/Service1.svc" />

         </baseAddresses>
Posted
Updated 28-Oct-13 3:55am
v2

1 solution

 
Share this answer
 
v3
Comments
shacha 28-Oct-13 9:54am    
I have already done that but i am getting this error i dont know where i am doing wrong.
thatraja 28-Oct-13 9:58am    
check updated answer. You should have included that link by mentioning something like " I tried this but not working"
shacha 28-Oct-13 10:28am    
My problem is i am able to host the service but when i browse the service in my project i am getting the error.
thatraja 28-Oct-13 10:35am    
same error?
shacha 28-Oct-13 10:37am    
Yes same error,so i am unable to add the service reference.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900