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 ?
Randomly 403 HTTP Status from IIS
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 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
2 answers
Sort by: Most helpful
-
-
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.