WCF Service - HTTP Error 404.3 Not Found. The page you are requesting cannot be served.
Run-time Error: The page you are requesting cannot be served.
In the previous article I explained about Client is unable to finish the security negotiation within the configured timeout (00:01:00). The current negotiation leg is 3 (00:00:00).
In this article I will explain about the WCF Service problem with not supported mimetype. It means that when I try to serve a WCF service on IIS in a Windows 8 machine, I get the following error:
"The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map."
Reason behind HTTP Error 404.3?
WCF services don’t run on IIS 8 with the default configuration, because the asp.net, c# webserver doesn’t know, how to handle incoming requests targeting .svc files.
To resolve this please do the following two configurations in IIS 8.0.
- Add new MIME type from IIS 8 - MIME Types -> Actions -> Add
Enter Extension: .svc, MIME type: application/octet-stream
- Add new HttpHandler from IIS 8 - Handler Mappings - > Add Managed Handler
Enter Request path: *.svc, Type: System.ServiceModel.Activation.HttpHandler, and
That's it. Now browse your wcf service from IIS.
Please leave your comments, suggestions and queries about this post in the comment sections in order for me to improve my writing skills and to showcase more useful posts. Thanks for reading! :)