When we call a webservice method Asyncronously that calls a stored procedure in DB2, it will update the web client with the results IF it is a 5-6 minute wait but it will not if it runs 13 minutes (our two longest waits)
Code:
Protected Sub btnAsync_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAsync.Click
Dim wsVSPS As New VSPSDS.ShelfDS
AddHandler wsVSPS.calculatePassFailCompleted, New VSPSDS.calculatePassFailCompletedEventHandler(AddressOf wsVSPS_Complete)
wsVSPS.calculatePassFailAsync("S2013099")
End Sub
Sub wsVSPS_Complete(ByVal sender As Object, ByVal e As calculatePassFailCompletedEventArgs)
txtResults.Text = e.Result
End Sub
I added a line of code to write to the event log the e.Results in the call back function and it writes the correct results, but for some reason, the txtResults.Text box will not update with the 13 minute wait for the long procedure call, 13 minutes, but it will with the 6 minute wait. All timers have been set to 40 minutes: Web Config httpRuntimeExecution, the page asynctimeout (<%@ Page Language="VB"...Async="true" AsyncTimeout="2400"... %>, the setting in the IIS, and the AsyncPostBackTimeout setting in the <asp:ScriptManager AsyncPostBackTimeout="2400"......>
Just wondering if there is some 10minute thread timeout setting somewhere that I'm missing? Is there something I should do to keep the thread alive?
We also used the legacy aysnc calls with BeginWebMethod and EndWebMethod and had the operation wait, but that had the same behavior as I described above.
Thanks,
Kevin
Code:
Protected Sub btnAsync_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAsync.Click
Dim wsVSPS As New VSPSDS.ShelfDS
AddHandler wsVSPS.calculatePassFailCompleted, New VSPSDS.calculatePassFailCompletedEventHandler(AddressOf wsVSPS_Complete)
wsVSPS.calculatePassFailAsync("S2013099")
End Sub
Sub wsVSPS_Complete(ByVal sender As Object, ByVal e As calculatePassFailCompletedEventArgs)
txtResults.Text = e.Result
End Sub
I added a line of code to write to the event log the e.Results in the call back function and it writes the correct results, but for some reason, the txtResults.Text box will not update with the 13 minute wait for the long procedure call, 13 minutes, but it will with the 6 minute wait. All timers have been set to 40 minutes: Web Config httpRuntimeExecution, the page asynctimeout (<%@ Page Language="VB"...Async="true" AsyncTimeout="2400"... %>, the setting in the IIS, and the AsyncPostBackTimeout setting in the <asp:ScriptManager AsyncPostBackTimeout="2400"......>
Just wondering if there is some 10minute thread timeout setting somewhere that I'm missing? Is there something I should do to keep the thread alive?
We also used the legacy aysnc calls with BeginWebMethod and EndWebMethod and had the operation wait, but that had the same behavior as I described above.
Thanks,
Kevin