Search code examples
web-servicespublishhttp-status-code-401iis-10

401 - Unauthorized: Access is denied due to invalid credentials. IIS 10 New Publish POST API


I Have ASP.NET Web API2 Web service , I am trying to Publish it in new server IIS 10 , But it's return 401 - Unauthorized: Access is denied due to invalid credentials with it's web page. when I request POST Method , I tried it locally and its work fine and it was worked perfect in old server . can anyone suggest any solution ?


Solution

  • I Had to Disable Basic authentication while anonymous authentication is enabled in IIS .