Re: How to eliminate delay making first call to a webservice?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Andy,
I think your problem actually stems from the JIT compiling process that
occurs upon the first request to the web service. You could use Ngen to
pre-compile your assembly to native code.



PRB: Delay on First Method Invocation on Web Services
http://support.microsoft.com/kb/323577

--
Page Brooks
www.explosivedog.com


"Andy" <andyj@xxxxxxxxxxxxxxxxxx> wrote in message
news:1177960041.648825.276730@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Apr 30, 2:57 pm, DaveOnSEN <anonym...@xxxxxxxxxx> wrote:
Every time I make any .NET framework based webservice consumer I have
the same problem: The first call my application makes to consume a
webservice takes about 15 seconds. Subsequent calls are very fast.
What is happening during this initial delay, and is there anything I can
do to fix this so my applications start up quickly?

For example, typically the first call to consuming a webservice is some
sort of 'login / authenticate' function. The user puts in a username
and password and clicks ok. 15 seconds go by, now user is logged in and
gets a screen populated with data. The call for the data is instant,
whereas the call to login is slow. This is the same no matter what
applications I use, all .net framework applications that consume
webservices that I have seen so far have this problem.

Is there a fix / workaround?

You might want to ask this in an asp.net forum, you may get better
answers. Basically, you're running into how IIS recycles the asp.net
worker process. You may need to adjust this so that process isn't
recycled as often.



.



Relevant Pages

  • RE: Possible to consume a web service with VB.NET 1.1 VS 2003?
    ... webservice is aiming at interop between heterogenious platforms. ... Microsoft MSDN Online Support Lead ... Possible to consume a web service with VB.NET 1.1 VS 2003? ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: How to eliminate delay making first call to a webservice?
    ... typically the first call to consuming a webservice is some ... applications I use, all .net framework applications that consume ... worker process. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: returns http 404
    ... remote web app. ... Could you reach any breakpoints in the web service when calling it from ... *new* asp.net project on the same box as the web service and try to consume ... Can you get to any breakpoints in the webservice when you call the ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • How to eliminate delay making first call to a webservice?
    ... Every time I make any .NET framework based webservice consumer I have ... applications I use, all .net framework applications that consume ...
    (microsoft.public.dotnet.languages.csharp)
  • Inheritance question
    ... I have a Web Service that serves configuration data to applications ... functionality to a 'WebService' class that inherits an 'AppProperties' class ... AppProperties class is dropped in as well. ...
    (microsoft.public.dotnet.languages.vb)