postmanasp.net-core-3.1iis-10

Why would a Post from Postman to MVC6 webapp running under localhost work, but not to the same app deployed on IIS10 server


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)
    {

Solution

  • 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.