Whenever I publish WCF service to IIS. It is almost I have become habituated to get this error:
HTTP Error 404.3 - Not Found 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.
The practice I have maintained: is to change application pool for the website to classic mode
.
But this time I am out of luck.
Open Control Panel and click Programs and Features > Turn Windows features on or off. Enable Internet Information Services. Expand the Internet Information Services feature and verify that the web server components listed in the next section are enabled. Click OK.
A . svc file contains a WCF-specific processing directive (@ServiceHost) that allows the WCF hosting infrastructure to activate hosted services in response to incoming messages. This file contains the details required for WCF service to run it successfully.
Try enabling HTTP Activation
Go to Control Panel > Windows Features > .NET Framework 4.5 Advanced Services > WCF Services > HTTP Activation(tick this)
For me I simply needed to add the specific mimetype to the IIS website I was running
Per Adding Static Content MIME Mappings <mimeMap>
:
- Open Internet Information Services (IIS) Manager
- In the Connections pane, go to the site, application, or directory for which you want to add a MIME type.
- In the Home pane, double-click MIME Types.
- In the MIME Types pane, click Add... in the Actions pane.
- In the Add MIME Type dialog box, add the file name extension and MIME type, and then click OK.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With