HTTP PUT not allowed in ASP.NET Web API

前端 未结 6 1188
一生所求
一生所求 2020-11-30 04:18

On my Web API project, I cannot perform an HTTP PUT to my resources. I\'ve read through some similar questions on this problem and I\'ve followed the recommende

6条回答
  •  星月不相逢
    2020-11-30 04:49

    Double check that you're using [HttpPut] from System.Web.Http.

    Under some circumstances you can end up using the attribute from System.Web.Mvc.

    This was resulting in 405s for us.

提交回复
热议问题