469,643 Members | 1,877 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,643 developers. It's quick & easy.

ServerXMLHTTP server-side times out

Hi there,

We are having a problem with the following code.
This asp page (as you can see in the code) creates a ServerXMLHTTP object and posts an xml object (xmlRequest) to another asp page and receives the xml response back.
Practically in the application this functionality could be used many times in a row.
Similar code works fine if written in client-side JavaScript (somewhere else in the application) but in this case (server-side script) it hangs exactly after 48 requests and times out right after!!!! There is an "operation time-out" error catched in the application log (try-catch section in the code bellow on Poster.send) and a "ASP_0147|500_Server_Error 500" in the IIS log.
If I restart IIS and try again, no matter what, it times out again exactly on request # 49.
This is what happens in an environment with windows 2000
as the web server.
In another environment with window 2003 as the web server, it does not work at all and an authentication error is catched on the same line of code (oPoster.send) every time.

sURL = "http://localhost/.../ReportGenerator.asp";
var oPoster = Server.CreateObject("MSXML2.ServerXMLHTTP");
var lResolve = 30 * 1000;
var lConnect = 30 * 1000;
var lSend = 120 * 1000;
var lReceive = 120 * 1000;
oPoster.setTimeouts(lResolve, lConnect, lSend, lReceive);
oPoster.open("POST", sURL, false);
catch (e)
Logger.WriteInfo("ReportRetriever.asp","Error on oPoster.send" + e.description);
var xmlDoc = Server.CreateObject("Microsoft.XMLDOM");
xmlDoc = oPoster.responseXML;

Any thoughts on this would be highly appreciated. It actually is driving us (me particularly) crazy!

Thanks in advance,
Mar 15 '07 #1
0 1115

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Maris Janis Vasilevskis | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.