0

I'm creating an app. I have a method that pings my API to see if it's online. This is done with a HEAD call.

However, HEAD seems to be blocked, I get a 405 response. I've followed suggestions here: ASP.NET Web API - PUT & DELETE Verbs Not Allowed - IIS 8 but Verbs is set to ALL.

We've also checked

  • SSL certificate
  • CORS
  • Cookies
  • Access tokens
  • Strict-Transport-Security

and none of those are the cause.

What else can I do? The API is a Web API 2.0 application, we're using IIS 10

Update 20-11-2021

Issue is still not resolved. We've resorted to GET requests. I hope someday someone will stand up who can give us clear instructions for IIS 10, including not only the troubleshooting steps to take but also what to look for in the output.

Diana
  • 789
  • 8
  • 34
  • Enable FRT to see what gives you 405, https://learn.microsoft.com/en-us/iis/troubleshoot/using-failed-request-tracing/troubleshooting-failed-requests-using-tracing-in-iis – Lex Li Feb 10 '20 at 20:13
  • command cause of the issue is multiple handlers are defined for the same verb/method, and one of the handlers is blocking the expected handler from processing the request. you could try to add this code in web.config file:` ` – Jalpa Panchal Feb 11 '20 at 08:35
  • refer this link for more deatil:https://learn.microsoft.com/en-us/aspnet/web-api/overview/testing-and-debugging/troubleshooting-http-405-errors-after-publishing-web-api-applications – Jalpa Panchal Feb 11 '20 at 08:55
  • Issue is not resolved yet, your comments are either for old version of IIS, or they suggest something we've already tried or it points to troubleshooting that doesn't tell me what to look for in the output. – Diana Nov 20 '21 at 11:05

0 Answers0