Fork me on GitHub

【记录】WCF IIS 404

WCF IIS 发布报“404错误”:

修改 Web.config 如下:

<system.webServer>
    <handlers>
        <remove name="svc-Integrated-4.0" />
        <add name="svc-Integrated-4.0" path="*" verb="*" type="System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
</system.webServer>

参考:

posted @ 2014-12-29 19:08  田园里的蟋蟀  阅读(330)  评论(0编辑  收藏  举报