We have an ASP.Net MVC application. It has been published in the Production environment and debug is set to true (not sure why) in WEb.config.
compilation batch="true" debug="true" targetFramework="4.5"
But still the application timeouts.
I want to make debug="false"
and add the below tag.
httpRuntime executionTimeout="43200" maxRequestLength="104856" targetFramework="4.5"
But if the application timeouts when debug="true"
then I think it will timeout even when debug="false"
irrespective of the executionTimeout.
Is there any way we can set the timeout via Global.asax.cs?
Edit 1: The application gets a timeout if the process runs for more that 2 minutes.
So that means the session is still alive.
<sessionState mode="InProc" cookieless="false" timeout="60" />
For the database I have added command timeout of 5 minutes (just for testing purpose) but still there is a timeout.
Edit 2: After browsing through the logs this was the error.
The remote host closed the connection. The error code is 0x800703E3