Webservice hangs

N

nano2k

Hi

I have an application that contains a form with a component derived by
me from DataGrid on it.
Periodically, the component (I added a new method - Reload()) refreshes
it's content (i have a timer that calls Reload() method).

The timer is set to 1 hour. When the form loads, the datagrid calls a
webservice method to get data. After one hour, another request will be
sent, and so on.
The problem is that after 1h, the request hangs.
I set the timer to 1 minute to test the issue, but it seems that it
work. But, after approx. 1h, the request hangs.
Analysing the call stack, it seems that there are 2 requests pending,
so the second is blocked.

Any idea why?

Call stack:

mscorlib.dll!System.Threading.WaitHandle.WaitOne() + 0xa3 bytes
system.dll!System.Net.LazyAsyncResult.InternalWaitForCompletion() +
0x2e bytes

system.dll!System.Net.HttpWebRequest.EndGetRequestStream(System.IAsyncResult
asyncResult = {System.Net.LazyAsyncResult}) + 0x12a bytes
system.dll!System.Net.HttpWebRequest.GetRequestStream() + 0xd1 bytes

system.web.services.dll!System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(string
methodName = "ExecuteQuery", System.Object[] parameters = {Length=4}) +
0xa8 bytes
wsbroker.dll!IKS.ERP.Framework.ERPDBWebSrv.DBService.ExecuteQuery(string xmlRequest = "<request method=\"0\"><schema>frmmaintask</schema><count>0</count><fields /><filter><item useGuid=\"False\" itemType=\"CUSTOM\" fieldType=\"0\" constant=\"False\" displayValue=\"\"><clause>AND</clause><field>frmmaintask.userid</field><value>ady</value><operator>=</operator></item><item useGuid=\"False\" itemType=\"CUSTOM\" fieldType=\"0\" constant=\"False\" displayValue=\"\"><clause>AND</clause><field>frmmaintask.done</field><value>0</value><operator>=</operator></item></filter><order /></request>", string xmlCultureInfo, bool bMaxConnections = false, string sessXml = "<session CompanyID=\"{f3533a13-2556-4fb7-b62f-9e78a295b1d1}\" ServerName=\"192.168.0.1\" DatabaseName=\"contdb_nou\" SessionID=\"{8ef7e8b5-1bea-4029-ba64-090ecd1515dc}\" CheckMaxConnections=\"False\" />") Line 647 + 0x6f bytes C#

wsbroker.dll!IKS.ERP.Framework.ERPWebServiceBroker.ExecuteQuery(string
xmlRequest = "<request
method=\"0\"><schema>frmmaintask</schema><count>0</count><fields
/><filter><item useGuid=\"False\" itemType=\"CUSTOM\" fieldType=\"0\"
constant=\"False\"
displayValue=\"\"><clause>AND</clause><field>frmmaintask.userid</field><value>ady</value><operator>=</operator></item><item
useGuid=\"False\" itemType=\"CUSTOM\" fieldType=\"0\"
constant=\"False\"
displayValue=\"\"><clause>AND</clause><field>frmmaintask.done</field><value>0</value><operator>=</operator></item></filter><order
/></request>") Line 789 + 0x40 bytes C#
erpframework.dll!IKS.ERP.Framework.ERPObjectSet.Execute() Line 106 +
0xe bytes C#
ikscontrols.dll!IKS.ERP.Framework.Controls.IKSDataGrid.Reload() Line
86 C#

mscorlib.dll!System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Object
obj = {IKS.ERP.Framework.Controls.IKSDataGrid},
System.Reflection.BindingFlags invokeAttr = Default,
System.Reflection.Binder binder = <undefined value>, System.Object[]
parameters = <undefined value>, System.Globalization.CultureInfo
culture = <undefined value>, bool verifyAccess = false) + 0x2cc bytes
mscorlib.dll!System.Delegate.DynamicInvokeImpl(System.Object[] args =
<undefined value>) + 0x3e bytes

mscorlib.dll!System.MulticastDelegate.DynamicInvokeImpl(System.Object[]
args = <undefined value>) + 0x2d bytes
mscorlib.dll!System.Delegate.DynamicInvoke(System.Object[] args =
<undefined value>) + 0x10 bytes

system.windows.forms.dll!System.Windows.Forms.Control.InvokeMarshaledCallbacks()
+ 0x203 bytes

system.windows.forms.dll!System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0x7d5 bytes

system.windows.forms.dll!System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0x6c bytes

system.windows.forms.dll!System.Windows.Forms.ContainerControl.WndProc(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0x37 bytes

system.windows.forms.dll!System.Windows.Forms.Application.ParkingWindow.WndProc(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0x22 bytes

system.windows.forms.dll!ControlNativeWindow.OnMessage(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0x13 bytes

system.windows.forms.dll!ControlNativeWindow.WndProc(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0xda bytes

system.windows.forms.dll!System.Windows.Forms.NativeWindow.Callback(int
hWnd = 656532, int msg = 49963, int wparam = 0, int lparam = 0) + 0x4a
bytes

system.windows.forms.dll!System.Windows.Forms.Form.DefWndProc(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0xa0 bytes

system.windows.forms.dll!System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0xa55 bytes

system.windows.forms.dll!System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0x6c bytes

system.windows.forms.dll!System.Windows.Forms.ContainerControl.WndProc(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0x37 bytes

system.windows.forms.dll!System.Windows.Forms.Form.WndProc(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0x2ab bytes

system.windows.forms.dll!ControlNativeWindow.OnMessage(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0x13 bytes

system.windows.forms.dll!ControlNativeWindow.WndProc(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0xda bytes

system.windows.forms.dll!System.Windows.Forms.NativeWindow.Callback(int
hWnd = 853234, int msg = 787, int wparam = 0, int lparam = 49349318) +
0x4a bytes
mscorlib.dll!System.Threading.WaitHandle.WaitOne() + 0xa3 bytes
system.dll!System.Net.LazyAsyncResult.InternalWaitForCompletion() +
0x2e bytes

system.dll!System.Net.HttpWebRequest.EndGetRequestStream(System.IAsyncResult
asyncResult = {System.Net.LazyAsyncResult}) + 0x12a bytes
system.dll!System.Net.HttpWebRequest.GetRequestStream() + 0xd1 bytes

system.web.services.dll!System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(string
methodName = "ExecuteQuery", System.Object[] parameters = {Length=4}) +
0xa8 bytes

wsbroker.dll!IKS.ERP.Framework.ERPDBWebSrv.DBService.ExecuteQuery(string
xmlRequest = "<request
method=\"0\"><schema>frmmaintask</schema><count>0</count><fields
/><filter><item useGuid=\"False\" itemType=\"CUSTOM\" fieldType=\"0\"
constant=\"False\"
displayValue=\"\"><clause>AND</clause><field>frmmaintask.userid</field><value>ady</value><operator>=</operator></item><item
useGuid=\"False\" itemType=\"CUSTOM\" fieldType=\"0\"
constant=\"False\"
displayValue=\"\"><clause>AND</clause><field>frmmaintask.done</field><value>0</value><operator>=</operator></item></filter><order
/></request>", string xmlCultureInfo, bool bMaxConnections = false,
string sessXml = "<session
CompanyID=\"{f3533a13-2556-4fb7-b62f-9e78a295b1d1}\"
ServerName=\"192.168.0.1\" DatabaseName=\"contdb_nou\"
SessionID=\"{8ef7e8b5-1bea-4029-ba64-090ecd1515dc}\"
CheckMaxConnections=\"False\" />") Line 647 + 0x6f bytes C#

wsbroker.dll!IKS.ERP.Framework.ERPWebServiceBroker.ExecuteQuery(string
xmlRequest = "<request
method=\"0\"><schema>frmmaintask</schema><count>0</count><fields
/><filter><item useGuid=\"False\" itemType=\"CUSTOM\" fieldType=\"0\"
constant=\"False\"
displayValue=\"\"><clause>AND</clause><field>frmmaintask.userid</field><value>ady</value><operator>=</operator></item><item
useGuid=\"False\" itemType=\"CUSTOM\" fieldType=\"0\"
constant=\"False\"
displayValue=\"\"><clause>AND</clause><field>frmmaintask.done</field><value>0</value><operator>=</operator></item></filter><order
/></request>") Line 789 + 0x40 bytes C#
erpframework.dll!IKS.ERP.Framework.ERPObjectSet.Execute() Line 106 +
0xe bytes C#
ikscontrols.dll!IKS.ERP.Framework.Controls.IKSDataGrid.Reload() Line
86 C#

mscorlib.dll!System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Object
obj = {IKS.ERP.Framework.Controls.IKSDataGrid},
System.Reflection.BindingFlags invokeAttr = Default,
System.Reflection.Binder binder = <undefined value>, System.Object[]
parameters = <undefined value>, System.Globalization.CultureInfo
culture = <undefined value>, bool verifyAccess = false) + 0x2cc bytes
mscorlib.dll!System.Delegate.DynamicInvokeImpl(System.Object[] args =
<undefined value>) + 0x3e bytes

mscorlib.dll!System.MulticastDelegate.DynamicInvokeImpl(System.Object[]
args = <undefined value>) + 0x2d bytes
mscorlib.dll!System.Delegate.DynamicInvoke(System.Object[] args =
<undefined value>) + 0x10 bytes

system.windows.forms.dll!System.Windows.Forms.Control.InvokeMarshaledCallbacks()
+ 0x203 bytes

system.windows.forms.dll!System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0x7d5 bytes

system.windows.forms.dll!System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0x6c bytes

system.windows.forms.dll!System.Windows.Forms.ContainerControl.WndProc(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0x37 bytes

system.windows.forms.dll!System.Windows.Forms.Application.ParkingWindow.WndProc(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0x22 bytes

system.windows.forms.dll!ControlNativeWindow.OnMessage(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0x13 bytes

system.windows.forms.dll!ControlNativeWindow.WndProc(System.Windows.Forms.Message
m = {System.Windows.Forms.Message}) + 0xda bytes

system.windows.forms.dll!System.Windows.Forms.NativeWindow.Callback(int
hWnd = 656532, int msg = 49963, int wparam = 0, int lparam = 0) + 0x4a
bytes

system.windows.forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(int
dwComponentID = 1, int reason = -1, int pvLoopData = 0) + 0x349 bytes
system.windows.forms.dll!ThreadContext.RunMessageLoopInner(int reason
= -1, System.Windows.Forms.ApplicationContext context =
{System.Windows.Forms.ApplicationContext}) + 0x1f3 bytes
system.windows.forms.dll!ThreadContext.RunMessageLoop(int reason =
-1, System.Windows.Forms.ApplicationContext context =
{System.Windows.Forms.ApplicationContext}) + 0x50 bytes

system.windows.forms.dll!System.Windows.Forms.Application.Run(System.Windows.Forms.Form
mainForm = {ERPApp.FrmMain}) + 0x34 bytes
ERPApp.exe!ERPApp.FrmMain.Main() Line 582 + 0x1c bytes C#
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top