22

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.

  • Q.1. Can you please help?
  • Q.2. As the error suggests: Should I configure .svc MIME map some where in IIS?
  • Q.3. For WCF to operate in integrated pipeline mode, Is there any specific configuration required?
Kurubaran
  • 7,956
  • 5
  • 36
  • 62
Abhijeet
  • 12,062
  • 24
  • 73
  • 149
  • 1
    **See Also**: [WCF on IIS8; \*.svc handler mapping doesn't work](https://stackoverflow.com/q/11116134/1366033) – KyleMit Sep 08 '20 at 00:11
  • This should be open because this is the ACTUAL error... I never found the original page, just this one. Good job, person who asked this question. – Patrick Knott Mar 19 '21 at 23:39

2 Answers2

58

Try enabling HTTP Activation

Go to Control Panel > Windows Features > .NET Framework 4.5 Advanced Services > WCF Services > HTTP Activation(tick this)

Add Windows Features

KyleMit
  • 45,382
  • 53
  • 367
  • 544
Kurubaran
  • 7,956
  • 5
  • 36
  • 62
  • 2
    I can't believe, you solved it in a fraction of second! Share your secret, where did you learn WCF? – Abhijeet Dec 22 '13 at 18:17
  • 1
    @lakshya Glad it helped you. well, I ran into similar problem once upon a time, just remembered the solution thats all :). Mark it as answer if it solved you problem. it will helps others. – Kurubaran Dec 22 '13 at 18:22
  • Thanks for the edit. If you really believe your answer can help others, don't forget to upvote the question :-) – Abhijeet Dec 26 '13 at 16:52
  • As WCF gets smaller in the rearview mirror fundamental nuggets like this become more valuable. Thanks. – Rodney Apr 01 '20 at 17:15
1

For me I simply needed to add the specific mimetype to the IIS website I was running

Per Adding Static Content MIME Mappings <mimeMap>:

  1. Open Internet Information Services (IIS) Manager
  2. In the Connections pane, go to the site, application, or directory for which you want to add a MIME type.
  3. In the Home pane, double-click MIME Types.
    IIS > Mime Types
  4. In the MIME Types pane, click Add... in the Actions pane.
    Add MIME Type
  5. In the Add MIME Type dialog box, add the file name extension and MIME type, and then click OK.
    Add MIME Type
KyleMit
  • 45,382
  • 53
  • 367
  • 544
Yous0147
  • 281
  • 3
  • 8