Host WCF service application on IIS

1.8k Views Asked by At

I have created this service: http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/four-steps-to-create-first-wcf-service-for-beginners/ and now I want to host that service on IIS.

The solutions I came across are creating service library and then creating a separate hosting project.

What if I want to host WCF service application on IIS?

Purpose of hosting on IIS is because I want to consume that service on android application.

1

There are 1 best solutions below

7
On

MSND How-to for hosting the WCF on IIS. You don't have to create Service library seperatly and hosting application seperately. All you can do is create a simple Visual studio WCF Service Application Project which includes a SVC file which will help you to host on IIS and create Services in the same project. Steps:

  1. Create a new Visual Studio WCF Service Application
  2. This WCF Service Project already contains the SVC file, which is used for hosting the services on IIS.
  3. Create your services.
  4. Compile the Service Project.
  5. Open the IIS using inetmgr windows shortcut (win + r)
  6. Create a website /web application on IIS and point the WCF Service Application Project directly.
  7. Select Appropriate Application Pool, depending on your .NET Framework.