473,473 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SoapHttpClientProtocol.Invoke hangs when calling web service from worker thread -- only in debugger!?

Hi, I have a web service called GetComputerNameAndDescription which I can
call from the main thread of my app. If I call it from a separate thread,
however, it hangs on the call to Invoke() -- but only if I'm in the
debugger. Here's a stack trace with non-user code shown -- the call to
RegisterNotifySource, at the top of the stack, never returns -- I have to do
a "break all" inside the debugger, then find this thread and examine its
call stack in order to get this output.

Anyone have any ideas what's going on here?

Thanks

Greg Hassett

00000000()

system.web.services.dll!System.Web.Services.Unsafe NativeMethods.RegisterNoti
fySource(System.Web.Services.Interop.INotifyConnec tion2 connection =
{System.__ComObject}, System.Web.Services.Interop.INotifySource2 source =
{System.Web.Services.Protocols.RemoteDebugger}) + 0x1e bytes

system.web.services.dll!System.Web.Services.Protoc ols.RemoteDebugger.get_Not
ifySink() + 0x2d bytes

system.web.services.dll!System.Web.Services.Protoc ols.RemoteDebugger.NotifyC
lientCallOut(System.Net.WebRequest request = {System.Net.HttpWebRequest}) +
0x3d bytes

system.web.services.dll!System.Web.Services.Protoc ols.WebClientProtocol.GetW
ebRequest(System.Uri uri = {System.Uri}) + 0xdd bytes

system.web.services.dll!System.Web.Services.Protoc ols.HttpWebClientProtocol.
GetWebRequest(System.Uri uri = {System.Uri}) + 0x22 bytes

system.web.services.dll!System.Web.Services.Protoc ols.SoapHttpClientProtocol
..GetWebRequest(System.Uri uri = {System.Uri}) + 0x1e bytes

system.web.services.dll!System.Web.Services.Protoc ols.SoapHttpClientProtocol
..Invoke(string methodName = "GetComputerNameAndDescription", System.Object[]
parameters = {Length=2}) + 0x75 bytes

cheebyservice.dll!CheebyService.AdelaP2PWebService s.AccountManager.AccountMa
nager.GetComputerNameAndDescription(string encryptionId =
"998eea01c0ad4f019ecaec74785053c3", string encryptedMacAddress =
"ZOG2U5DFoV39V+6VEcJCIoE0WD5Ej65qM5e+M8+XY0Jx0d3e2 1x4UpeoEIDYkODFY8wXRAayul9
KOZyqS3JsxSQa8JyWD5ddtEUd2XuHNh72XFDd/3tw9SYVitPCSic10w7ywX1J60xPfo8OxV/KAUl
N61XYvmIbHgobOIQsnjY=", string name = null, string description = null) Line
459 + 0x3c bytes C#

cheebyservice.dll!CheebyService.ConnectionService. GetComputerNameAndDescript
ion(string name = null, string description = null) Line 906 + 0x2b bytes C#

cheebyservice.dll!CheebyService.CommandProcessors. ConnectionServiceManager.e
xecuteCommand(CheebyService.Service cs = {CheebyService.SvcLocal},
System.Xml.XmlNode node = {System.Xml.XmlElement}) Line 75 + 0x26 bytes C#
cheebyservice.dll!CheebyService.SvcLocal.executeCo mmand(System.Xml.XmlNode
commandNode = {System.Xml.XmlElement}) Line 95 + 0x16 bytes C#

cheebyservice.dll!CheebyService.SvcLocal.Handler(S ystem.Net.Sockets.TcpClien
t tcpClient = {System.Net.Sockets.TcpClient}, string xmlParams) Line 55 +
0xc bytes C#
cheebyservice.dll!CheebyService.Service.HandlerMet hod() Line 243 C#
Nov 17 '05 #1
1 3586
> however, it hangs on the call to Invoke() -- but only if I'm in the
debugger. Here's a stack trace with non-user code shown -- the call to


From the look of your stack trace, it might be that the debugger is trying
to debug the server?

Here's a useful article about troubleshooting remote debugging:
http://msdn.microsoft.com/library/de...ml/vsdebug.asp

However, in case of debugging trouble I expect the thread to shut down
with an exception after a minute at most.

Greetings,
Wessel
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Jacob Crossley | last post by:
Hello all. We have about 10 Window's services that we wrote in c#. We use them to process row's that we have queued up in various SQL tables. The services seem to hang at least once in any given...
5
by: Stephen Lamb | last post by:
I have a background worker thread which I start from a form's HandleCreated event that makes calls back to the form using Invoke. During shutdown the form is disposed and the background worker...
0
by: Kim | last post by:
Hi, I am calling a web service from a hand held terminal (running Pocket pc 2002) using the SoapHttpClientProtocol class. Sometimes the terminal gets out of network coverage - in that case I want...
2
by: Lucvdv | last post by:
To avoid a temporarily frozen user interface, I'm using a separate thread to fill a list with items found in a database (there can be from a few up to about 1000 or 1500 items). There seems to...
7
by: Jeff Stewart | last post by:
I need a thread to run a subroutine which updates my main form's progress bar. I've properly marshaled all UI updates to the main UI thread, and after the main thread starts the worker thread, it...
4
by: Jit Prasad | last post by:
I have a working client-side Vb.Net (.net v1.0) app that talks to a Webspere webservice on a windows 2000 server. The client side app runs on a citrix server, also a Windows 2000 server. The app...
0
by: Gregory Hassett | last post by:
Hi, I have a web service called GetComputerNameAndDescription which I can call from the main thread of my app. If I call it from a separate thread, however, it hangs on the call to Invoke() -- but...
2
by: =?Utf-8?B?a2VubmV0aG1Abm9zcGFtLm5vc3BhbQ==?= | last post by:
vs2005, c# Trying to understand why one way works but the other doesnt. I have not tried to create a simpler mdi/child/showdialog app for posting purposes (I think even this would not be so small...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.