1. if net.tcp not enable on the server, you will see "The protocol 'net.tcp' is not supported." error message:

2. You need install and turn on the feature in Control panel\Programs and features:

3. then enable the protocols of your service:

4. set up the binding port:

5. done. it should be work, if not work, check those step again and the binding address in you web.config file.
I will post my service code and client code later.

Categories: WCF

ILmerge.exe download link from Microsoft.

info: http://research.microsoft.com/en-us/people/mbarnett/ILMerge.aspx

For example, the following command could be issued to combine one primary assembly and two secondary assemblies into a single merged DLL file:

ilmerge /out:Merged.dll Primary.dll Secondary1.dll Secondary2.dll

using wildcard:
ilmerge /wildcards /out:Merged.dll Primary.dll Secondary*.dll

ilmerge /log:log.txt /out:Merged.dll Primary.dll Secondary1.dll Secondary2.dll

Categories: VS 2005 | VS 2008


Step 7: Create a Test Client Application

In this step, you create a Windows Forms application named Test Client to test the WCF service.

  1. Right-click your solution, click Add, and then click New Project.
  2. In the Add New Project dialog box, in the Templates section, select Windows Forms Application.
  3. In the Name field, type Test Client and then click OK to create a Windows Forms application.
  4. Right-click your client project and then click Add Service Reference.
  5. In the Add Service Reference dialog box, set the Service URI: to net.tcp://localhost:8523/WCFTestService and then click Go.
  6. Change the Service reference name: to WCFTestService and then click OK.

Step 8: Test the Client and WCF Service

In this step, you use the test client to ensure that the WCF service is running properly.

  1. In your client project, drag a button control onto your form.
  2. Double-click the button control to show the underlying code.
  3. In the code behind the button click, create an instance of the proxy, and call the DoWork() method of your WCF service.

    When you call the service, your current user security context will automatically be passed to your WCF service. The code should look as follows:

    private void button1_Click(object sender, EventArgs e)
          WCFTestService.MyServiceClient myService = 
             new WCFTestService.MyServiceClient();
          MessageBox.Show(myService.DoWork("Hello World!"));
  4. Right click the client project and then click Set as Startup Project.
  5. Run the client application by pressing F5 or CTRL+F5.

    When you click the button on the form, the message “Welcome Hello World!” should appear.

other ref: 

Host your WCF service with multiple host environment using multiple protocol

Categories: WCF

(this one is for 2003 server

Below content from unknown source:

step 1

make sure the window services related to was  is running 24/7. Please ensure that svc - integrated handler is working properly in IIS 7.0.  This step is very important. Make sure the IIS 7.0 is working perfectly. You should also have administrative prevliages on you machine.

step 2

In the adminstravtive command  make sure the website is enable to accept the net.tcp protocol or the UI interface in the IIS 7.0 will help  you  to do it. The command is given below. This command should be at the adminstrative command in window server 2008. This process is one time activity.

%windir%\system32\inetsrv\appcmd.exe set site "Default Web Site" -+bindings.[protocol='net.tcp',bindingInformation='8000:*']

step 3

After your web application is created , mapping to your phsyical directory in your machine. You must enable the web application to accept net.tcp protocol.  The sample dos command is given below and this command should be run in the administrative command in window server 2008

%windir%\system32\inetsrv\appcmd.exe set app "Default Web Site/ Application Name” /enabledProtocols:http;net.tcp

step 4

In the Microsoft.NET Framework 3.0, enable the Window Communication Foundation Non-HTTP activation.  Kindly ensure that the two features like Window communication foundation HTTP Activation, XPS Viewer in Microsoft.NET Framework 3.0 should also be enabled.

  • From the Start menu, choose Control Panel.
  • Select Programs and Features.
  • Click Turn Windows Components on or Off.
  • Expand the Microsoft .NET Framework 3.0 node and check the Windows Communication Foundation Non-HTTP Activation feature

step 5

In the Window Features , enable all the features of window process activation service. The features to be enabled are .Net environment, Configuration API ,Process Model.

  • From the Start menu, choose Control Panel.
  • Select Programs and Features.
  • Click Turn Windows Components on or Off.
  • Expand Window Process Activation Process Activation.

step 6

The Turn User Account Control should be turned off , in the case if you are trying to host  WAS service in a new machine. If the user account is turned on then it is not possible to host the WCF Service in IIS 7.0.

  • Click start
  • Go to Setting and click the control panel
  • Select the User Control
  • Click on the Turn User Account Control on or off

step 7

In the Internet Information Service , enable the features which are given below. the IIS Metabase and IIS 6 configuration compatibility which comes under web management tools.

From the Start menu, choose Control Panel.
Select Programs and Features.
Click Turn Windows Components on or Off.
Expand Internet Information Service.

step 8

Microsoft Front Page Server Exemptions Extensions

If Microsoft Front Page Server Exemptions extension is not installed in the machine,
Install using the following URL

step  9 -  ServiceModel Registration Tool (ServiceModelReg.exe)

For information on ServiceModelReg , visit the url which is given below. It is very important


Sample application for WAS Hosting you can you use from the URL which are given below


Categories: WCF