且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

的ASP.NET Web API只在某些服务器上PUT返回404

更新时间:2023-11-22 09:59:52

这些IIS服务器安装在他们网络的DAV模块,我敢打赌不需要,它是安装,因为安装人员打勾所有箱子吧。

Those IIS servers have web-dav module installed on them and i bet it is not needed and it was installed because the person installing ticked all boxes.

刚刚从IIS中删除Web-DAV。

Just remove web-dav from iis.

或者使用web.config中删除Web DAV模块:

Alternatively use web.config to remove web dav module:

<system.webServer>
    <modules>
        <remove name="WebDAVModule" />
    </modules>
    ...