My app sometimes shows 403-Forbidden: Access is denied error

sdypsjdhs 21 Reputation points
2021-04-15T14:43:56.587+00:00

Hello expert,

I got a strange problem. My application works normally on iis, but the 403-Forbidden: Access is denied error suddenly appeared yesterday. I am not sure why this is, but when I ran it again today , It works normally again.
Does anyone know why this is? Any help will be appreciated.

Internet Information Services
0 comments No comments
{count} votes

Accepted answer
  1. Sam Wu-MSFT 7,036 Reputation points Microsoft Vendor
    2021-04-16T08:21:19.177+00:00

    Hi @sdypsjdhs

    Please check the IIS site logs for the sub status code. and which kind of application you are using? are trying to use the SSL URL? please share the detailed error snapshot.

    you could also try to use some troubleshooting steps to resolve the issue.

    1. Make sure you enable directory browsing at your site or application level.
    2. Check that anonymous authentication is enable and others are disabled.
    3. IIS_IUSRS and IUSR permission is set to the site/application root folder.

    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Alberto Poblacion 1,556 Reputation points
    2021-04-17T16:57:31.1+00:00

    I have had the same problem, where I sometimes got the 403 and I couldn't find anything in the application configuration that would justify it. I finally managed to determine that the IP address restrictions in IIS had been activated for some ranges of addresses. So, when a request happened to come from one of these addresses, it got back a 403, but it worked perfectly well when the request came from a different address. Since the client used for testing had a dynamic address, then some days it worked and some days it didn't.

    Of course, your problem may be completely different, but it's worth checking if you are suffering from the same issue.

    0 comments No comments