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
2. Add a new Managed HTTP Handler:
Request path: *.svc
Type: System.ServiceModel.Activation.HttpHandler
Name: svc-Integrated
That’s it!
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!
you made my day
Pingback: All Things of World
I must just say: thank you.
What about support for svc less activations, I’ve heard that you need svc-Integrated-4.0?
Thanks a lot Sir,
This helped me a lot.
You saved my time
Thanks, this was the issue, and very less blogs/sites suggest this resolution.
What’s about HttpActivation ?
http://stackoverflow.com/questions/11116134/wcf-on-iis8-svc-handler-mapping-doesnt-work
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
The scripted way on Windows 2012 server is (in powershell):
add-windowsfeature NET-WCF-HTT-Activation45
(Corrected Text)The scripted way on Windows 2012 server is (in powershell):
add-windowsfeature NET-WCF-HTTP-Activation45
Thanks for sharing, Tim!
Is possible to put this in the web.config?
Absolutely, IIS Manager will save this into the web.config file.
Thank you! Solved my problem of not being able to access service methods and see them listed with web request in http://localhost/MyServiceDir/MyService.svc?wsdl
Thanks a lot. Really very helpful
Thanks, works like a charm
Thanks so much for this – was tearing my hair out until I found this page!!
Cheers man, fuck iis
It’s working…..Thanks much!!!!!!!!
i had to install HttpActivation like others recomented thanks !
Thank you!
This was exactly what I needed to know.
Cheers!
Craig.
Thank you, you rock!!!
I feel like you left a whole lot of what could be useful information out of this post lol.
Pingback: WCF Service not working in IIS after Web app migration – Website Information
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