Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF service hosting in IIS 7.5 - The page you are requesting cannot be served because of the extension configuration [duplicate]

Tags:

c#

iis

wcf

iis-7.5

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?
like image 932
Abhijeet Avatar asked Dec 22 '13 18:12

Abhijeet


People also ask

How do I enable SVC in IIS?

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.

What is SVC file in WCF?

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.


2 Answers

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

like image 68
Kurubaran Avatar answered Oct 04 '22 01:10

Kurubaran


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
like image 36
Yous0147 Avatar answered Oct 04 '22 03:10

Yous0147