ASP.NET application times out prematurely after 15 minutes - asp.net

I have an ASP.NET application running on IIS. Both the session state timeout in the web.config and the process idle timeout in the application pool settings are set to 120 minutes, but the application always times out after only 15 minutes despite these settings. Are there any other settings I should be aware of?

Related

How to simulate IIS App-Pool shutdown due to timeout

I am facing an error in production due to IIS application pool shutdown during App-pool time out.
I want to reproduce the scenario in my local machine, however even if set low application pool time-out (5 minutes or 1 minute), it doesn't shutdown.
If I shutdown the application pool in the IIS user interface, it doesn't serve new requests. I want to simulate the scenario how it is shutdown and awake automatically when a new request comes in.
Thanks in advance,
Pandiarajan.
Instead of issuing a Stop command, use "Recycle". This will create a new instance of the AppPool and shutdown the old one.

IIS request failed after 15 minutes

I am encountering a problem with request done to a WCF application hosted in IIS 8.5. The problem is that request fails after exactly 15 minutes (every time), but the thread continues to work behind the scenes (finishes the invoked action after 15 minutes).
The test we have done a through a web application that connects to WCF service and also using the WcfTestClient.exe, the result is the same.
We have checked all the configurations in IIS and nothing points to 15 minutes timeout. Service binding has more than 15 minutes for receiveTimeout and sendTimeout.
Has anyone encounter this problem? We can't find the cause of this behavior.
Thank you
In the end it was a configuration on a proxy server that was in front of the IIS server. It had a timeout setting of 15 minutes.

Application Pool automatically disabled in IIS 7 on Windows 2008R2

Have a web application running on several servers. Two of the servers are having issues where the application pool becomes disabled. Message in the Event viewer System Log: Application pool 'xxxxx' is being automatically disabled due to a series of failures in the process(es) serving that application pool.
Just prior to this message are several other 'Warning' Messages: A process serving application pool 'xxxxx' suffered a fatal communication error with the Windows Process Activation Service. The process id was '1072'. The data field contains the error number. Or A process serving application pool 'xxxxx' terminated unexpectedly. The process id was '3644'. The process exit code was '0x0'.
Running IIS 7. The servers that are failing are running 2008R2 with Service Pack1 and the other are running 2008R2 (no Service Pack).
In the HTTP log right before I see the AppOffline message, there are the several Connection_Abandoned_By_ReqQueue and Client_Reset messages.
I have read and reread many posting about changing the Rapid-Fail Protection settings from the default of failure interval (minutes) 5 and Maximum failures 5 as I can see that after five failures in five minutes the AppPool is stopped. However, doing this just changes the number of issues during a particular time before the AppPool will be stopped and not really addressing the root cause of the problem.
What is the correct method for determine why the application is failing?
Could the difference in service pack on the server be a culprit?
Thanks.

"Application pool 'XXXXXXXXXX' is being automatically disabled due to a series of failures in the process(es) serving that application pool."

We have a ASP.NET/WCF app hosted in Window Server 2012 (IIS 7). We used the basicHttpBinding. This ASP.NET/WCF application exposes two methods; one is to receive messages and the other is to download a text file (1MB) onto the server.
On another server, we have ASP.NET hosted in Window Server 2012 (IIS 7) which is the client that consumes the exposed method mentioned earlier. This client application sends a message and uploads a text file at a high frequency. This communication between this ASP.NET/WCF application and client application works fine for a few hours until we get the following error at the ASP.NET/WCF side.
Application pool 'XXXXXXXXXX' is being automatically disabled due to a series of failures in the process(es) serving that application pool.
So, could you please shine some light regarding this issue that we are facing?
This is due to something called "Rapid Fail Protection." When your underlying application crashes a certain number of times in a certain time period, the application pool is automatically disabled.
The default settings are 5 crashes in 5 minutes, but you can configure this yourself. See this link for details.

IIS 7.0 Application Pool Recycling log files

Which event log files does the IIS 7.0 Application Pool Recycling log to?
I want to check out at what time the default app pool automatically recylces.
They are logged in the Windows Event Viewer. On Win7 they are in Windows Logs > System - filter for Source = WAS
A typical message may read:
A worker process with process id of '5916' serving application pool 'DefaultAppPool' was shutdown due to inactivity. Application Pool timeout configuration was set to 20 minutes. A new worker process will be started when needed.

Resources