views:

150

answers:

3

I am working on a project that uses the asp.net ajax control toolkit and all my callback requests are hanging till the request times out. When I step through the code all my code executes then the hanging occures. Right now I am looking for possible reasons why this might happen.

+1  A: 

Firewall or NAT? Something on the network might be blocking return calls from getting back to you.

John Gardner
Should be on port 80, same as the original page request so firewall/NAT shouldn't be an issue. It's just doing a http post or get with xmlHttpRequest.
tvanfosson
+2  A: 

If the request takes significant time, it is possible that the client-side AJAX request is timing out before your server-side code completes. At that point the client has dropped the connection and the server can no longer communicate with it. Can you look into increasing the timeout value on the client to something really big to eliminate this as a possibility?

tvanfosson
+1  A: 

Check if the callback address you are providing is valid to the server. For instance, the server may not be able to translate some host name or DNS entry.

Thegud
Should be just an xmlHttpRequest from the browser. If it loaded the page, it ought to be able to call back to the same server for ajax.
tvanfosson