Request are stucking in AuthenticateRequest State on IIS

Parmeshwar Kale 0 Reputation points
2024-04-22T07:01:24.13+00:00

We're facing a critical issue with our API server. It's built on C# .NET 4 with a C++ backend. The problem manifests as certain requests hitting the IIS of the backend server some instances, these requests remain stuck in the AuthenticateRequest state, which is at the very beginning of the IIS pipeline's request lifecycle. Most of them become stuck there and eventually time out.

Key points about our setup:

The implementation heavily utilizes asynchronous operations.

There are no database locks causing contention.

CPU load consistently remains at 10-20%, indicating no significant strain.

Our environment runs on Windows Server 2019 with IIS version 10.0.17763.1.

We operate two servers (server 1 and (server 2) connected to a single database, both running the same project. Additionally, we run identical APIs on both servers for synchronization purposes.

However, the issue only occurs on server 1; server 2 functions without problems.

We're open to any advice or ideas for further debugging on IIS, along with any additional information you may need.

Internet Information Services
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,481 questions
.NET Internet of things
.NET Internet of things
.NET: Microsoft Technologies based on the .NET software framework.Internet of things: A concept that aims to extend the benefits of the regular internet, including constant connectivity, remote control ability, and data sharing, to goods in the physical world.
30 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 68,636 Reputation points
    2024-04-29T19:47:18.2166667+00:00

    AuthenticateRequest is part or the asp.net pipeline. this event handler is typically defined in global.aspx (or its code behind) file. but any HttpModule could subscribe to the event (see web.config for list of HttpModules registered). you need to debug the code (maybe add trace events).

    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.