locked
How to host a WCF service in IIS 7.5 using netTcpBinding? RRS feed

Answers

  • Hi Alexey,

    For WCF service hosting in IIS7 through NetTcpBinding, we need to first ensure the non-HTTP activation components has been correctly installed(before look into the service configuration in app.config file). There are two main things we need to ensure:

    1) make sure the non-HTTP(netTcpBinding for your case) binding has been added into the hosting IIS website's binding collection(with proper port number configured)

    2) make sure the certain web appliaction virtual directory has the protocol(corresponding to the binding configured in site) enabled. For your case, it is the "net.Tcp" protocol.

    Here are the two referenc  articles mentioned this(one provide commandline syntax while another has illustration on the GUI based IIS manager).

    #Extend Your WCF Services Beyond HTTP With WAS
    http://msdn.microsoft.com/en-us/magazine/cc163357.aspx

    #How to: Install and Configure WCF Activation Components
    http://msdn.microsoft.com/en-us/library/ms731053(v=VS.90).aspx

    after that is setup correctly, we can continue to look at the service application's deployment and configuration setting.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Friday, December 10, 2010 7:25 AM
  • You right, the problem was in non-HTTP activation components. To install those components correctly I had to do the following:

    1. I deleted .Net Framework 4.0 

    2. I installed non-HTTP activation components 

    3. And then I again installed .Net Framework 4.0

    These steps helped me to solve the problem, thank you for showing me the correct direction.

    Friday, December 10, 2010 8:58 AM

All replies

  • Hi Alexey,

    For WCF service hosting in IIS7 through NetTcpBinding, we need to first ensure the non-HTTP activation components has been correctly installed(before look into the service configuration in app.config file). There are two main things we need to ensure:

    1) make sure the non-HTTP(netTcpBinding for your case) binding has been added into the hosting IIS website's binding collection(with proper port number configured)

    2) make sure the certain web appliaction virtual directory has the protocol(corresponding to the binding configured in site) enabled. For your case, it is the "net.Tcp" protocol.

    Here are the two referenc  articles mentioned this(one provide commandline syntax while another has illustration on the GUI based IIS manager).

    #Extend Your WCF Services Beyond HTTP With WAS
    http://msdn.microsoft.com/en-us/magazine/cc163357.aspx

    #How to: Install and Configure WCF Activation Components
    http://msdn.microsoft.com/en-us/library/ms731053(v=VS.90).aspx

    after that is setup correctly, we can continue to look at the service application's deployment and configuration setting.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Friday, December 10, 2010 7:25 AM
  • You right, the problem was in non-HTTP activation components. To install those components correctly I had to do the following:

    1. I deleted .Net Framework 4.0 

    2. I installed non-HTTP activation components 

    3. And then I again installed .Net Framework 4.0

    These steps helped me to solve the problem, thank you for showing me the correct direction.

    Friday, December 10, 2010 8:58 AM
  • Hi,

    Step1. Add Non-HTTP Activation from Features Wizard.
    Step 2. Following services should be enabled for net.tcp
    Net.TCP Listener Adapter and Net TCP Port Sharing Service.
    Step 3.  IIS should be enabled with net.tcp Binding. Go to IISàright Click àenable binding àadd net.tcp with Port No.
    Step 4. Go to your WCf Service in IIS, right Click manage applicationàadvance settingsà add net.tcp  in enabled protocols.
    Step 5.  In your WCF service web.config file you should have mex endpoint.

    Step 6. TCP Port should be enabled for inbound and out bound calls.


    http://www.techaray.com/post/2012/10/24/Steps-to-Host-WCF-Service-with-netTCPBinding-in-IIS-70-.aspx

    http://smsaxena.blogspot.in/2011/09/steps-to-host-wcf-service-with.html



    Tuesday, May 15, 2012 1:11 PM