In above code variable ver is assign to null, print ver before returning and see the value. Why is this asp.net core post request returning 405 (method not allowed)? The server you are calling is telling you that the post method is not allowed for the url you are trying to call.
(PDF) Leveraging the Power of Knowledge Management to Transform Global
Asked 6 years, 10 months ago modified 5 years, 7 months ago viewed 23k times 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. By passing in the path portion of your url as the request object data parameter.
As this ver having null service is send status as 204 no content.
405 method not allowed on [specific endpoint] in.net 8 web api asked 1 year ago modified 1 year ago viewed 638 times This is happening with all the get endpoints.