I have a controller method, which I can Post to (from Postman) when I run as localhost, but when deployed onto an IIS10 server, the Post fails. i.e. The model sent is correct as is the url
public async Task<IActionResult> ReceiveLicence([FromBody] MXLockit_LicencingModel licenceResponse)
{
If your application works fine locally, but there are problems when deployed to IIS, first check whether its permissions are sufficient.
Check that IIS_IUSRS
or IUSR
and Full control
permissions are set in the corresponding directory which app published in IIS.