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

我的梦境 提交于 2019-12-20 19:38:09

问题


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?

回答1:


Try enabling HTTP Activation

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




回答2:


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

Ref: https://docs.microsoft.com/en-us/iis/configuration/system.webserver/staticcontent/mimemap

Open up 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.



来源:https://stackoverflow.com/questions/20732391/wcf-service-hosting-in-iis-7-5-the-page-you-are-requesting-cannot-be-served-be

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!