I have an asp.net framework api endpoint that throws an error on IIS. it is a post method as thus:
[HttpPost]
[Route("api/ebonyiproxy/validateexpectedpaymentref")]
public async Task<IHttpActionResult> GetResult(CustomerRequest request)
{
...
catch (Exception ex)
{
_logger.Report(ex.StackTrace, DateTime.Now);
if (ex.InnerException != null)
_logger.Report(ex.InnerException.StackTrace, DateTime.Now);
return InternalServerError(ex);
}
}
Using postman to test; In the local, it returns valid response. In host, it throws the error bellow. Please help.
{"Message":"The requested resource does not support http method 'GET'."}