Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

POST using ServerXMLHTTP causes app to hang

Status
Not open for further replies.

webmonkey323

Programmer
Dec 17, 2002
10
GB
Hi,

I'm having serious problems using ServerXMLHttp in ASP (trad) to post data to an ASP.NET page. As soon as .open(...) is called, the application just freezes.

I was seeing a similar problem using XMLHttp, but switching to ServerXMLHttp appeared to fix this on my dev environment. However, having deployed the web app. to another server, ServerXMLHttp is similarly failing.

Any ideas would be greatly appreciated as I've pretty much run out of ideas.

Thanks,
Nick
 
Are you doing anything complicated besides the XMLHTTP call? Have you tried an absurdly simple version that just makes the call and outputs the response in pre or xmp tags?

Also, try pasting exactly what your trying to post to the .Net page into your address bar and refresh a few times to make sure it isn't causing the failure (though i would think it would die after 90 seconds and your XMLHTTP object would return a timeout status unless you upped it on the ASP.Net side).

Additionally, you could consider changing your asynchronous argument in your .Open to true and then doing a loop until the readyState > 1 or 2: 2 = status and headers returned but no body yet, 3 = some of the body, 4 = all of the body is back.

On top of that, you may want to turn off any local firewall you may be running into. I doubt that is the issue but it could be.

-T

barcode_1.gif
 
Hi Tarwn,

Thanks for this, I'd gone through a couple of these steps anyway and found that the .aspx page was responding (albeit with an error) when I hit the page without any data.

As you'd suspected, the problem was with an underlying process that the .aspx page was trying to invoke - a remote object which hadn't been initialised! However, rather than throwing an exception, the remote stub just sat haniging, causing the page to hang.

Thanks again for your help,
Nick
 
No problem, banged my head against the monitor a couple times in the past myself :)

barcode_1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top