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 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."

WCF service,MIME type,Deploy WCF service, Wcf svc mime type, WCF service on IIS,svc MIME type Configuring Handler Mappings in IIS 7, Add a MIME Type IIS 7, IIS 8

Reason behind HTTP Error 404.3?
WCF services don’t run on IIS 8 with the default configuration, because the, 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: .svcMIME type: application/octet-stream

Add a MIME Type (IIS 7), IIS 8

  • Add new HttpHandler from IIS 8 - Handler Mappings - > Add Managed Handler
Enter Request path: *.svcType: System.ServiceModel.Activation.HttpHandler, and
Name: svc-Integrated

Configuring Handler Mappings in IIS 7, IIS 8

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! :)

No comments:

All Rights Reserved by Etechpulse © 2015 - 2016
Powered By Blogger

Contact Form


Email *

Message *

Powered by Blogger.