msnews.microsoft.com
1/8/2003 1:33:00 AM
*** The solution ***
I had the United Devices agent running on my machine (the machine hosting
the web service).
The United Devices (UD) agent is a distributed application that makes use of
"spare" processor cycles. Since it is a low priority process, it shouldn't
interfere with other applications running on the machine. For some reason,
web services can't tolerate this amount of processor load and hang/time-out.
Bottom line is, DON'T run the UD agent (or any distributed app) for that
matter on a machine that is hosting web services.
I hope this helps others, as it had me stumped for several days.
Shaun
"Shock010" <shock010@emailgroups.net> wrote in message
news:eywatUgtCHA.2640@TK2MSFTNGP11...
> I am a newbie to dot net web services and am trying to invoke the "hello
> world" test web service.
>
> The following is the web service:
>
> '-web service
> start -----------------------------------------------------------------
>
> Imports System.Web.Services
>
> <WebService(Namespace:="myuniquenamespaceX0123EA/Test")> _
>
> Public Class Test
> Inherits System.Web.Services.WebService
>
> ' Web Services Designer Generated Code found here
>
> <WebMethod()> Public Function HelloWorld() As String
> HelloWorld = "Hello World"
> End Function
>
> End Class
>
> '- web service
> end -------------------------------------------------------------------
>
> The web service has been tested, by going to the URL and clicking
"invoke" -
> it appears to be working as it should.
>
> I added the web service to an ASP.NET project as a web reference. This
also
> appeared to work. I then tried calling the web service from within a
> code-behind VB page in ASP.NET. It should populate the label field with
the
> string returned from the helloWorld function but instead hangs until it
> times out with the following error:
>
> System.Net.WebException: The operation has timed-out.
>
>
>
> '- web service call
> start -------------------------------------------------------------------
>
> Dim wsTest As New mymachine.Test()
> lblTest.Text = wsTest.HelloWorld()
>
> '- web service call
> end -------------------------------------------------------------------
>
> The web service and the code to call it are both on the same machine, but
> this shouldn't make any difference.
>
> Has anyone else had similar problems of web services hanging / timing out,
> or reasons why it may hang or ways to solve the problem?
>
> Many thanks
>
> Shaun
>
>
>
>
>
>