Last post Nov 01, 2013 04:58 PM by l.laxmikant
Oct 28, 2013 03:33 PM|.net_junkie|LINK
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??
<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" />
<add baseAddress="net.tcp://XXXX-pc:8080/Service1.svc" />
Oct 28, 2013 04:05 PM|Siva Krishna Macha|LINK
It looks like your service in IIS is not configured for tcp. It looks to be configured only for http.
Enable tcp protocol also in IIS for your WCF service.
You may refer the following articles:
Please mark this as answer if this answers your question.
Oct 28, 2013 07:21 PM|.net_junkie|LINK
I have configured in IIS and i have hosted the service also but when i browse the service in my application i am getting the error.
Oct 29, 2013 03:48 AM|Steven Cheng - MSFT|LINK
As you mentioned that you can get it work when browse, I'm wondering how did you browse the service, by what (visual studio Add ServiceReference dialog or web browser or...)?
As mentioned by the references posted by Siva, when hosting net.tcp based service in IIS, we need to perform several configuration steps including:
So you can first make sure the above things have been done and then use Visual Studio Add ServiceReference dialog to visit the "net.tcp://xxxx/service.svc/mex" service address to see if it can show you the service metadata correctly. After that, you can
generate the service proxy and invoke the service operations.
#IIS 7.0: Extend Your WCF Services Beyond HTTP With WAS
Oct 30, 2013 05:55 AM|.net_junkie|LINK
I can host my service in IIS and i can browse the service.But when i want to add the service reference i am getting the error.
When i am adding the service reference i am getting the error
Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http]
Nov 01, 2013 04:58 PM|l.laxmikant|LINK
Try below things
1. Remove base address and use it with Endpoint address
2. if you are not using any httpBinding for your endpoint, make httpGetEnabled = false. When you add reference the error details you can see in windows event logs that will give you clear idea... what is going wrong.
<serviceMetadata httpGetEnabled="false" />
When you use non http binding and host service in IIS you have to make some changes in IIS and system. Below article will help you to do required changes.