Share via

IIS-hosted ASP.NET app using Sybase DirectCONNECT intermittently hangs, requires app pool recycle

Sridhar Kumar N 0 Reputation points
2026-01-30T13:11:59.01+00:00

We are facing an intermittent production issue where an IIS-hosted application using the Sybase DirectCONNECT client becomes unresponsive (hung) once or twice every 1–2 weeks. The application does not crash, but all incoming requests remain stuck in “Processing” and never complete. Service is restored only after recycling the IIS application pool.

please refer the eventviewer screenshot, mutliple time this error comes - it auto resolves mostly but sometime hung for long and manaual APPPool Recycle needs to fix the issue.

Windows development | Internet Information Services

1 answer

Sort by: Most helpful
  1. Danny Nguyen (WICLOUD CORPORATION) 6,615 Reputation points Microsoft External Staff Moderator
    2026-02-02T10:29:25.54+00:00

    Hi,

    This behavior typically indicates a hung/blocking Sybase DirectCONNECT call (often through COM+/Enterprise Services, consistent with Complus Event ID 4786) that never returns. That blocks ASP.NET request threads, so IIS shows requests stuck in Processing until an app pool recycle terminates the stuck threads and resets client/pooling state.

    Key indicators from your details:

    • Only one URL triggers it → one specific DC code path is hanging.
    • Not traffic-related → not load, likely a stuck I/O/lock/COM call.
    • Repeated Event ID 4786 → COM+/Enterprise Services involvement is likely.

    Next time it happens, please capture a dump of w3wp.exe before recycling:

    • DebugDiag (Hang rule) or ProcDump: procdump -ma <pid> C:\Dumps\w3wp_hang.dmp
    • Analyze with DebugDiag Analysis or WinDbg + SOS to see exactly what threads are waiting on (vendor DLL/COM wait/socket read/lock).

    Mitigations:

    1. Set explicit connection/login and command/query timeouts (avoid infinite waits).
    2. Ensure all connections/commands/readers are always disposed (using) to prevent pool exhaustion.

    If possible, please share the full text of one Event 4786 entry and confirm whether you’re using ODBC/OLE DB/managed provider/COM component.

    Hope this helps.

    1 person found this answer helpful.

Your answer

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