Publishing a WCF service on IIS 8

WCF services don’t run on IIS 8 with the default configuration, because the webserver doesn’t know, how to handle incoming requests targeting .svc files. You can teach it in two steps:

1. Add a new MIME type:

Extension: .svc
MIME type: application/octet-stream

iis8-svc-mime-type

 

2. Add a new Managed HTTP Handler:

Request path: *.svc
Type: System.ServiceModel.Activation.HttpHandler
Name: svc-Integrated

iis8-svc-handler

That’s it!

 

Technorati-címkék: ,,

26 thoughts on “Publishing a WCF service on IIS 8

  1. facebook stock value

    I like the helpful information you provide in your articles.
    I will bookmark your blog and check again here regularly.
    I’m quite sure I’ll learn many new stuff right here!

    Best of luck for the next!

    Reply
  2. Pingback: All Things of World

  3. kiquenet kiquenet

    Maybe working this values

    Request path: *.svc

    Type:

    System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

    Name: svc-Integrated-4.0

    Reply
  4. Tim B.

    The scripted way on Windows 2012 server is (in powershell):
    add-windowsfeature NET-WCF-HTT-Activation45

    Reply
  5. Tim B.

    (Corrected Text)The scripted way on Windows 2012 server is (in powershell):
    add-windowsfeature NET-WCF-HTTP-Activation45

    Reply
  6. Pingback: WCF Service not working in IIS after Web app migration – Website Information

  7. Emre

    Thank you very much, I also want to add that if web.config files includes same handler it will raise a duplicate error, if you remove it from web.config it will run smoothly

    Reply

Leave a comment