Button click, executes method, sometimes takes a long (> 1 min time), populates a grid within an update panel. AsyncPostBackTimeout=”600″ set, should be plenty of time.
Do this locally and short and long duration works fine.
When deployed to IIS 7 short duration, don’t experience any trouble at all.
However, the longer ones just give me the following error:
EDIT: Error on the browser javascript console
Message: ‘length’ is null or not an object
Line: 2
Char: 18021
Code: 0
EDIT: Currently deployed on a test server therefore below link will not work straight off the bat.
I really don’t know where the length is coming from, the only other javascript I have is this:
<script type="text/javascript" language="javascript">
function CancelClick() {
alert('Changes have not been saved');
}
function StartProcedure() {
document.getElementById("<%=lblExecute.ClientID%>").innerText = "Procedure currently executing";
}
</script>
Subject error was a red herring.
Stuck in an unhandled exception handler and before the above error, I was receiving another generic “Request time out”
I added
<httpRuntime executionTimeout="500"/>to my web config and all my troubles disappeared.