Link to home
Start Free TrialLog in
Avatar of Rose Babu
Rose BabuFlag for India

asked on

ASMX Web Service Response exactly after 15 seconds delay in IIS 7

Hi Experts,

i have one strange response problem with my VB.NET web service (ASMX) hosted in Win 2008 server (IIS 7).

The win server is connected via VPN and firewall to get access. I've hosted our web service in IIS and while trying to access it from the other end, we have constantly getting 15 seconds delay on the response.

The request (ssl secured request is made) is reaching the IIS and then the 15 seconds delay is occurring then the request reaching the service and immediately (~40milliseconds) the response is returned. so totally the response is going after ~15.40 seconds.

Why is the 15 seconds delay is occurring before each response? what do i need to check for this?

since our test server returns the response immediately (~40ms) which is public and not having external firewall.

while checking the packets traffic using WireShark application, we found the request is reaching the IIS and then there is 15 seconds delay before the response.

Can anyone provide a solution or suggestions that would be appreciate a lot.

Rose.
Avatar of Aaron Jabamani
Aaron Jabamani
Flag of United Kingdom of Great Britain and Northern Ireland image

what exactly you are doing in the web service ?
Avatar of Rose Babu

ASKER

hi apeter,

actually the web service is used to send the balance detail of a registered user. right now the service gets the request and send a sample response.

in the test server (win2008 server) the response is coming very quickly. but in production server is only the problem occurs.

same code is used in both server. only thing i doubt is on vpn, firewall and probably ssl.
did u find which place is taking more time? request reaching server, or server processing or after processing response coming back to client ?
from the captured packet, we have found the request is reaching the IIS then there is 15 seconds delay and then the request is reaching the service. Then the service is returning the response in ~40 ms.

client rejects the response if it comes after 4 seconds. :-( but our response is going within ~40 ms except the 15seconds delay before the response. (i try to provide some more additional info)

to test it, there is nothing coded inside the service method, only sample response data is returned immediately.

i guess the worker process (HTTP.SYS) module may be causing the delay. or might be any other IIS 7 modules checking or or doing validations on the request.
can you do a logging like...before the method executes and the end of the methods executes. So that we can freeze whether the iis is taking time or really the methods is taking time.
yes, we have tried with failed request log in iis7 and got the error log. and also we have captured packet details. I'm looking on the logs. wil post the details...
ASKER CERTIFIED SOLUTION
Avatar of Rose Babu
Rose Babu
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
we have hosted our web service in IIS 6 (win 2003 server). Now there is NO time delay on response and response coming within a second.

still we are looking on this issue to fix in IIS 7 (windows 2008 server). post the details if anyone has fixed issue like this.
finally we have hosted our web service in IIS 7 (win 2008 server). now our web service is returning response very quickly as expected.

we have changed the Application Pool's managed pipeline mode to "Classic" in IIS 7. and now It works fine.

we fixed this issue on two weeks before. i delayed to post it here. anyhow this may help someone.
Thanks for sharing.