473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 23 '05 #1
0 1431

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...
1
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...
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...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.