Randomly 403 HTTP Status from IIS

Francis Garnier 0 Reputation points
2024-02-14T07:09:45.6533333+00:00

Hi, I have an ASP.NET WebForms application (4.7.2) who run from long time. Since some days, for one ASPX page (always the same), users randomly (I think) receive 403 status. I activate trace on IIS (10) and I see this detail : MODULE_SET_RESPONSE_ERROR_STATUS - Warning ModuleName="ManagedPipelineHandler", Notification="EXECUTE_REQUEST_HANDLER", HttpStatus="403", HttpReason="Forbidden", HttpSubStatus="0", ErrorCode="The operation completed successfully. (0x0)", ConfigExceptionInfo="" On the Microsoft documentation, the substatus 0 is not mentionned. And then I compare this 403 trace with a 200 trace of the same page, I see differences in AspNetHttpHandler events. Trace 403 has less events than trace 200. Trace 403 :Trace 403

Trace 200 : Trace 200

I don't know where to search next. The errors occurs in production 3 or 4 time per day. Any ideas how can I go further ? I'm lost... Thank you

Windows development | Internet Information Services
Developer technologies | ASP.NET | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Francis Garnier 0 Reputation points
    2024-02-16T06:28:31.86+00:00

    As I say in my comment, since the IIS trace in 403 case don't have some ASP.NET page events, I override these events in my page and add a log and a call to base in each of them. Then I have a status 403, all these logs (OnPreRender, OnPreRenderComplete and OnSaveStateComplete) are not prensent. How can I go further to find why these events are not executing ?


  2. Francis Garnier 0 Reputation points
    2024-02-22T09:17:49.7233333+00:00

    Thank you for all ideas and response. Finally, the 403 was returned by our application (we use an opaque private framework...). The problem is now corrected.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.