Answered by:
How to host WCF service at TCP IP and IIS?

Question
-
User-306750178 posted
Hi,
I have a WCF service, and I want to consume it through IIS and TCP ip.
Can anyone provide articles with code examples?
Tuesday, August 13, 2013 7:13 AM
Answers
-
User-488622176 posted
If you host a WCF service in IIS, you either consume it through HTTP and/or HTTPS.
If you want to consume it by other protocols, you need to add extra service bindings/endpoints, and enable TCP bindings in IIS. See http://stackoverflow.com/questions/11413406/net-tcp-http-wcf-hosted-in-iis for an example
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, August 13, 2013 9:18 AM -
User503812343 posted
For hosting WCF service to IIS with netTcpBinding or netNamedPipeBinding requires some settings on IIS and system
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, August 13, 2013 11:06 AM -
User-431249759 posted
You`ll need IIS 7+ for that. Then you`ll be able to use TCP as your binding protocol.
Here is info on how to enable non-http binding: http://bloggingabout.net/blogs/marc/archive/2007/10/23/wcf-hosting-non-http-protocols-in-iis-7-0.aspx
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, August 13, 2013 11:20 AM -
User260886948 posted
Hi,
By default, IIS supports http or https protocols, so the binding like netTcpBinding or netNamedPipeBindings can not be used in IIS host.
Then if we want to use netTcpBindings, we need to manage some settings.
Here is a artilce about this, please try to check:
#Hosting WCF service with netTcpBinding or netNamedPipeBinding in IIS:
http://dotnetmentors.com/hosting-wcf-service-with-nettcpbinding-or-netnamedpipebinding-in-iis.aspx .Best Regards,
Amy Peng- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, August 14, 2013 5:25 AM
All replies
-
User-488622176 posted
If you host a WCF service in IIS, you either consume it through HTTP and/or HTTPS.
If you want to consume it by other protocols, you need to add extra service bindings/endpoints, and enable TCP bindings in IIS. See http://stackoverflow.com/questions/11413406/net-tcp-http-wcf-hosted-in-iis for an example
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, August 13, 2013 9:18 AM -
User503812343 posted
For hosting WCF service to IIS with netTcpBinding or netNamedPipeBinding requires some settings on IIS and system
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, August 13, 2013 11:06 AM -
User-431249759 posted
You`ll need IIS 7+ for that. Then you`ll be able to use TCP as your binding protocol.
Here is info on how to enable non-http binding: http://bloggingabout.net/blogs/marc/archive/2007/10/23/wcf-hosting-non-http-protocols-in-iis-7-0.aspx
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, August 13, 2013 11:20 AM -
User260886948 posted
Hi,
By default, IIS supports http or https protocols, so the binding like netTcpBinding or netNamedPipeBindings can not be used in IIS host.
Then if we want to use netTcpBindings, we need to manage some settings.
Here is a artilce about this, please try to check:
#Hosting WCF service with netTcpBinding or netNamedPipeBinding in IIS:
http://dotnetmentors.com/hosting-wcf-service-with-nettcpbinding-or-netnamedpipebinding-in-iis.aspx .Best Regards,
Amy Peng- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, August 14, 2013 5:25 AM