none
WCF Service with NetTcp Binding Hosting in IIS RRS feed

  • Question

  • I know the procedure how to host nettcp service in iis. Please help my understanding this.

    1) All these days I thought thought IIS is only basichttp ,WSHttpBinding,WSDualHttpBinding i.e my understanding is : We use IIS only if service should be available over internet i.e HTTP protocol(through 8080 public port). So what exactly duty of IIS.Where I am missing the concept.??

    2)I understood that nettcp binding should be used only in case when there is wire to wire communication between machines i.e between client and server ( there will be some intranet). Am I wrong? with my understanding about netTcp.??

    3) Why they are hosting nettcp binding in IIS?

    Please help me to understand above questions.

    Thankyou,

    S Priya

    Thursday, August 15, 2013 2:39 PM

Answers

  • Hi,

    1) All these days I thought thought IIS is only basichttp ,WSHttpBinding,WSDualHttpBinding i.e my understanding is : We use IIS only if service should be available over internet i.e HTTP protocol(through 8080 public port). So what exactly duty of IIS.Where I am missing the concept.??

    IIS 7.0 uses protocols that build on TCP/IP, including:

    • Hypertext Transfer Protocol (HTTP) 
    • Secure Sockets Layer (SSL) 
    • File Transfer Protocol (FTP) 
    • Simple Mail Transfer Protocol (SMTP)

    For more information, please try to refer to:
    #IIS 7.0 Protocols:
    http://technet.microsoft.com/en-us/library/cc268242.aspx .

    For the duty of the IIS, please try to refer to:
    #IIS:
    http://www.microsoft.com/en-in/server-cloud/windows-server/internet-information-services-iis.aspx .

    2)I understood that nettcp binding should be used only in case when there is wire to wire communication between machines i.e between client and server ( there will be some intranet). Am I wrong? with my understanding about netTcp.??

    Yes, the netTcpBinding is a secure and optimized binding suitable for cross-machine communication between WCF applications.

    3) Why they are hosting nettcp binding in IIS?

    NetTcp is much more efficient than http - it's encoding binary which saves a lot of bandwidth, and it has other properties which make it really really fast.

    If you want to host nettcpbinding in IIS, please try to refer to the following steps:

    • Ensure the Net.Tcp Listener Adapter windows service is running
    • Ensure netTcp is listed as an enabled protocol for your website (In IIS Manager, go to Advanced settings for your site)
    • Ensure netTcp is listed as an enabled protocol for application (directory) that is hosting your services (In IIS Manager, go to the directory hosting your services and select Advanced Settings)
    • Ensure your IIS site has a binding for net.tcp, with the correct port number listed.


    For more information, please try to refer to following article:
    #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
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, August 16, 2013 4:11 AM
    Moderator