As this "ver" having null service is send status as "204 No Content". And about status code "405 - Method Not Allowed" will get this status code when rest controller or service only supporting GET method but from client side your trying with POST with valid uri request, during such scenario get status as "405 - Method Not Allowed"
@Div "405 method not allowed" can be shown in the case I shared because the method will not catch api-call as the route setup is invalid. The api-call may then hit another unintended method which could have a different HTTP action allowed.
I've been trying find a solution about 405 method not allowed problem. There is an api for login and register. Register post method works fine but when i send credentials from postman i get 405 err...
405 - HTTP verb used to access this page is not allowed. The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.
server error:405 - HTTP verb used to access this page is not allowed
405 errors can be traced to configuration of the Web server and security governing access to the content of the Web site. It seems that the server to which you are sending the Post request (your Site's server) has been configured to block Post request.
System.Net.WebException : The request failed with HTTP status 405: Method Not Allowed. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) I've done some googling and it appears that ...
c# - How to solve HTTP status 405 "Method Not Allowed" when calling Web ...