本地或远程IIS上的WCF应用程序中的错误404

时间:2016-02-26 13:59:36

标签: c# wcf web-config

我创建了小型WCF应用。这个应用程序在IIS Express上工作得很好。但是,当我在本地或远程IIS上发布此应用程序时,我发现错误:" IIS Web Core MapRequestHandler StaticFile"

此Web.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.serviceModel>
    <services>
      <service name="Gate.Service1" >
        <host>
          <baseAddresses>
            <add baseAddress = "http://localhost:10808" />
          </baseAddresses>
        </host>
        <endpoint address="/list/"
              binding="webHttpBinding"
              contract="Gate.IService1"
              behaviorConfiguration="webBehaviour"
                  />
      </service>
    </services>
    <behaviors>
      <endpointBehaviors>
        <behavior name="webBehaviour">
          <webHttp/>
        </behavior>
      </endpointBehaviors>
    </behaviors>
  </system.serviceModel>
</configuration>

我做错了什么?

更新 我重新安装ASP.NET,但它没有解决问题

C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis -i

0 个答案:

没有答案