472,146 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

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 1178

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
reply views Thread by Saiars | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.