WCF Self Hosting in a Console Application Simplified

Tutorials Shared by the Internet Community


WCF Self Hosting in a Console Application Simplified

Simple step by step approach to create and self host a WCF Service in a console application.


  • Total Hits - 28296

  • Total Votes - 18 votes

  • Vote Up - 9 votes

  • Vote Down - 9 votes

  • Domain - www.topwcftutorials.net

  • Category - ASP.Net/ASP.Net Misc

  • Submitted By - Imran Ghani

  • Submitted on - 2014-07-02 03:17:18


In order to host a Windows Communication Foundation Service, we normally need a managed process, a ServiceHost instance and an endpoint configured forWCF Service.We can host aWCF Service in following different possible ways:
1. Hosting in a Managed Application/ Self Hosting
>>>Console Application
>>>Windows/WPF Application
>>>Windows Service
2. Hosting on Web Server
>>>IIS 6.0 (ASP.NET Application supports only HTTP)
>>>Windows Process Activation Service (WAS) i.e. IIS 7.0 supports HTTP, TCP, NamedPipes, MSMQ.    More detail...

Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down