Why is this asp.net core post request returning 405 (method not allowed)? This is happening with all the get endpoints. 405 method not allowed on [specific endpoint] in.net 8 web api asked 1 year ago modified 1 year ago viewed 638 times
International Infection Prevention & Control Week (Oct 13th 19th
The server you are calling is telling you that the post method is not allowed for the url you are trying to call. Asked 6 years, 10 months ago modified 5 years, 7 months ago viewed 23k times By passing in the path portion of your url as the request object data parameter.
In above code variable ver is assign to null, print ver before returning and see the value.
As this ver having null service is send status as 204 no content. 1 hey, i had this problem as well and this is the only solution i found to work (without hacking the 405 page) i'm going to assume the problem is with a post request.