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

笑着哭i 提交于 2019-12-03 06:28:12

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

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.

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