最近两天写了个项目,里面有一个接口是用谓词delete接收请求。
本地完全没问题,但是当发布到服务器上之后(IIS7.5),就报出 405.0 - Method Not Allowed

很明显是配置问题。
经过查找资料找到解决方法:在Web.config中添加一段配置

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

    .....

相关文章:

  • 2021-05-26
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
  • 2021-11-17
  • 2021-07-28
  • 2022-12-23
猜你喜欢
  • 2021-06-29
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-25
相关资源
相似解决方案