【问题标题】:Wen browse a .SVC HTTP Error 404.17 - Not Found The requested content appears to be script and will not be served by the static file handler文浏览 .SVC HTTP 错误 404.17 - 未找到 请求的内容似乎是脚本,不会由静态文件处理程序提供服务
【发布时间】:2019-12-18 06:39:15
【问题描述】:

嗨,当我在 Windows 10 机器上从 IIS 10 浏览 WCF 服务时,我遇到了以下问题。

【问题讨论】:

标签: wcf iis windows-10


【解决方案1】:

我建议你可以先检查你的服务器上是否安装了正确的 WCF 扩展。

您可以打开服务器管理器并选择添加角色或功能以打开向导。

如果您已经安装了 WCF 扩展,我建议您检查应用程序的 web.config 文件以确保您使用了正确的 WCF 设置。

例如:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.serviceModel>
    <services>
      <service name="Microsoft.ServiceModel.Samples.CalculatorService">

        <!-- This endpoint is exposed at the base address provided by host: http://localhost/servicemodelsamples/service.svc -->
        <endpoint address=""
                  binding="wsHttpBinding"
                  contract="Microsoft.ServiceModel.Samples.ICalculator" />

        <!-- The mex endpoint is explosed at http://localhost/servicemodelsamples/service.svc/mex -->
        <endpoint address="mex"
                  binding="mexHttpBinding"
                  contract="IMetadataExchange" />
      </service>
    </services>
  </system.serviceModel>

</configuration>

【讨论】:

    猜你喜欢
    • 2014-04-04
    • 2013-06-07
    • 1970-01-01
    • 2013-03-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多