Timeout Issue Caused by Idle Time-Out Action

By
Published 03-26-2021 11:01 AM 745 Views
Microsoft

While navigating the pages in an application, the page was spinning for about a minute and giving a timeout error. This application utilizes a WCF service.

 

We collected a dump file from both the ASP.NET page and WCF service while the page was spinning. Here are the exceptions we saw in the dump files:

 

Exception Type : System.Net.Sockets.SocketExceptionMessage: An existing connection was forcibly closed by the remote hostSystem.ServiceModel.Channels.SocketConnection.Write(Byte[], Int32, Int32, Boolean, System.TimeSpan)Exception Type : System.ServiceModel.CommunicationExceptionMessage: The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.System.Runtime.AsyncResult.End[[System.__Canon, mscorlib]](System.IAsyncResult)System.ServiceModel.Activation.WorkerProcess.EndDispatchSession(System.IAsyncResult)Exception Type : System.IO.PipeExceptionMessage: There was an error reading from the pipe: The pipe has been ended. (109, 0x6d).System.ServiceModel.Channels.PipeConnection.OnAsyncReadComplete(Boolean, Int32, Int32)

 

Solution

For this website, Idle Time-out Action was set to “Suspend”. This option isn’t always helpful. I don’t recommend using it.

 

Setting Idle Time-out Action to Terminate solved the issue. Website started displaying pages.

Nedim_0-1616781621350.jpeg

 

If you like to find out who change the application pool settings, check this post out.

%3CLINGO-SUB%20id%3D%22lingo-sub-2238329%22%20slang%3D%22en-US%22%3ETimeout%20Issue%20Caused%20by%20Idle%20Time-Out%20Action%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2238329%22%20slang%3D%22en-US%22%3E%3CP%3EWhile%20navigating%20the%20pages%20in%20an%20application%2C%20the%20page%20was%20spinning%20for%20about%20a%20minute%20and%20giving%20a%20timeout%20error.%20This%20application%20utilizes%20a%20WCF%20service.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20collected%20a%20dump%20file%20from%20both%20the%20ASP.NET%20page%20and%20WCF%20service%20while%20the%20page%20was%20spinning.%20Here%20are%20the%20exceptions%20we%20saw%20in%20the%20dump%20files%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EException%20Type%20%3A%20System.Net.Sockets.SocketExceptionMessage%3A%20An%20existing%20connection%20was%20forcibly%20closed%20by%20the%20remote%20hostSystem.ServiceModel.Channels.SocketConnection.Write(Byte%5B%5D%2C%20Int32%2C%20Int32%2C%20Boolean%2C%20System.TimeSpan)Exception%20Type%20%3A%20System.ServiceModel.CommunicationExceptionMessage%3A%20The%20server%20did%20not%20provide%20a%20meaningful%20reply%3B%20this%20might%20be%20caused%20by%20a%20contract%20mismatch%2C%20a%20premature%20session%20shutdown%20or%20an%20internal%20server%20error.System.Runtime.AsyncResult.End%5B%5BSystem.__Canon%2C%20mscorlib%5D%5D(System.IAsyncResult)System.ServiceModel.Activation.WorkerProcess.EndDispatchSession(System.IAsyncResult)Exception%20Type%20%3A%20System.IO.PipeExceptionMessage%3A%20There%20was%20an%20error%20reading%20from%20the%20pipe%3A%20The%20pipe%20has%20been%20ended.%20(109%2C%200x6d).System.ServiceModel.Channels.PipeConnection.OnAsyncReadComplete(Boolean%2C%20Int32%2C%20Int32)%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--497321707%22%20id%3D%22toc-hId--497321707%22%3ESolution%3C%2FH2%3E%0A%3CP%3EFor%20this%20website%2C%20Idle%20Time-out%20Action%20was%20set%20to%20%E2%80%9CSuspend%E2%80%9D.%20This%20option%20isn%E2%80%99t%20always%20helpful.%20I%20don%E2%80%99t%20recommend%20using%20it.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESetting%20Idle%20Time-out%20Action%20to%20Terminate%20solved%20the%20issue.%20Website%20started%20displaying%20pages.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Nedim_0-1616781621350.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F267528i9AE4509F0064A25B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Nedim_0-1616781621350.jpeg%22%20alt%3D%22Nedim_0-1616781621350.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20like%20to%20find%20out%20who%20change%20the%20application%20pool%20settings%2C%20check%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fiis-support-blog%2Fiis-7-5-how-to-enable-iis-configuration-auditing%2Fba-p%2F347239%22%20target%3D%22_blank%22%3Ethis%20post%3C%2FA%3E%26nbsp%3Bout.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2238329%22%20slang%3D%22en-US%22%3E%3CP%3EWhile%20navigating%20the%20pages%20in%20an%20application%2C%20the%20page%20was%20spinning%20for%20about%20a%20minute%20and%20giving%20a%20timeout%20error.%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎Mar 26 2021 11:01 AM
Updated by: