Re: Webservice problem (after iisreset)



Well, I was speaking about whatever means you're suing the make the call from the client. You said something about a HTC. Presumably you can alter the timeout on it, but since I've never used it I can't help you there. If it already waits one minute for the failure then it sounds like the timeout is already high enough.

I'd suggest writing an alternate client application and see if it has the same problems. So use wsdl.exe to generate a .NET proxy to your webservice to see if that style of client has the same problems or not. If it does, then it sounds like something on the server, if it does not then it's likley your HTC framework.

-Brock
DevelopMentor
http://staff.develop.com/ballen



Hi, thanks for your reply, but how do I configure the HTTP timeout ?
Do you mean the asp script timeout on the web service app ? It's
already on 1 minute. Or is there any other way I can configure the
timeout on the client side ?

What I don't understand is why it only times out on the first call...
:(

Thanks once again,

joao maia

Brock Allen wrote:

My only guess would be that the client is timing out, perhaps. I'd
suggest bumping up the HTTP timeout and see if that helps.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hello all.

I am using a very simple web service I developed to access a SQL
Server database and returning some data. I am accessing this web
service using the Microsoft WebService DHTML Behaviour (WebService
htc), in order to access the data I need from some javascript code
on a web page. So far, so good, it works really fine, but there's a
little problem: whenever the web server is restarted (either with a
reboot or just with an iisreset command), I cannot get the
webservice to work on the first attempt after restarting. On the
other attempts, it works normally, but on the first attempt after an
iisreset, nothing happens.

I have looked at the iis log files to see if there's any post
against the webservice application, and there actually is a post,
and what's more strange, it returns HTTP status 200, as if
everything has gone ok.

So, assuming everything is ok with the web server, I tried using
Visual Source Studio to debug my webservice's asmx file. I placed a
breakpoint on the first line of the webmethod, but on the first time
after doing iisreset, execution never stops there. It does stop on
the following calls, but never on the first one, so  I'm guessing
that the object never actually gets instantiated and thus, nothing
happens on the first call. I have also started SQL Server Profiler
to see if anything gets to the database, and no call gets to the
database on the first attempt after iisreset, which is just as I
expected.

The problem is I really don't know why my object isn't instantiated
after I do iisreset. Is it instantiated only on the first call to
the webservice app ? If so, why doesn't it do anything even on that
first call ? Could it be some kind of timeout problem ?

My webservice class derives from System.Web.Services.WebService, and
the web method signature is as follows

[WebMethod]
public int GetOrganizationData(uint iSiteID, string sUserID, string
sMode, out string sRetValue)
{ // fetches some data from database and returns it on sRetValue }
Am I doing something wrong ? Is there any way of trying to
understand
what's going on ? Please give me a hand here because I really don't
know what else to try...
I am running IIS 5 on an Windows XP development machine, but the
behaviour is the same on Windows 2000 Server, or on IIS 6 on Windows
2003. .NET Framework version is 1.1.

Thanks in advance,

joao maia




.



Relevant Pages

  • RE: 404 Not Found
    ... Can a config file possibly tell it not to look in hte GAC? ... what's the current trustLevel of your ASP.NET webservice on the server ... >> whether it is client side related..... ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Web service testing
    ... To test if my code was faulty or not, I back-ported the web service to a standard 2.0 web service using Visual Studio 2005. ... The service is run under IIS on a Windows 2003 server, so there are no server side connection limits that can explain this. ... ASP.NET webservice application. ... In addition, since the problems occur at client, you can use Visual studio ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: web serivce: client side timeout?
    ... client side but only from the server side. ... System.Net.Sockets.SocketException: A connection attempt failed ... asyncResult, Int32 timeout, Exception& exception) ... John Saunders | MVP - Windows Server System - Connected System ...
    (microsoft.public.dotnet.framework.webservices)
  • WebService ignoring timeout properties? (Server was unable to process request. --> Timeout e
    ... WebService code runs 3 SqlCommands that has timeouts set to 300 sec. Client ... WebService proxy has a timeout of 900 sec. ... monday - probably 'cause of more orders during the week-end) the server runs ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Timeout value in new RDP 6.0 client
    ... I would suspect the problem is not so much the timeout as the severely overloaded server. ... Most likely you completed the first few stages of the connection, leading the client to believe everything was okay, but the server wasn't establishing the connection in the time you expected due to the load. ...
    (microsoft.public.windows.terminal_services)