简体   繁体   中英

The requested resource does not support http method 'PUT'

I have implemented Web API Controller with PUT method (I marked method with HttpPut attribute from System.Web.Http ).

And when I try to make put request, i have message

The requested resource does not support http method 'PUT'.

I remove webdav in Web.Config , added put etc. But it is still not work. How I can resolve this problem?

Make sure that the param names on your URL match with some param names in your controller method declaration. This simple mistake can cause 405.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM