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: ,,

19 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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s