IIS 5 & IIS 6
IIS 5.1 and VBscript local HTTP request issue
Last post Dec 07, 2012 05:11 AM by anup.ghosh
Jan 06, 2010 10:31 AM|LINK
On my Win XP machine with IIS 5.1 machine I'm experiencing problems with an application that has to move from one server to another. I have isolated the the problem to the following VBSCRIPT page on http://localhost:90/testrequest.asp (the test website is
on port 90):
<%@ LANGUAGE="VBSCRIPT" LCID="1033"%>
Set WebRequest = CreateObject("MSXML2.XMLHTTP")
Call WebRequest.Open("GET", "http://localhost:90", False)
Set WebRequest = nothing
The page is trying to open another (valid) page on the localhost server, but it looks like it cannot handle another thread correctly. The page keeps on loading without response. If I use an external URL like http://forums.iis.net/, it works.
Could this be a setting in IIS to prevent recursive HTTP requests or something? I have spent quite some time searching for information on this, but I couldn't find a solution.
Thank you for your assistance.
Jan 06, 2010 11:58 AM|LINK
Not sure why that wouldn't work, but try this technique instead. You should be using the ServerXMLHTTP object in ASP code ...
Jan 06, 2010 12:10 PM|LINK
Thank you for response, but unfortunately it doesn't help.
The request/page still seems to 'hang'. A restart of IIS is needed as well, because it completely doesn't respond anymore.
Jan 12, 2010 05:03 PM|LINK
Jan 14, 2010 12:48 PM|LINK
Finally found the solution for this problem. The debugging settings in the Application Configuration ('enable ASP server-side script debugging' and 'enable ASP client-side script debugging') were enabled, which resulted in this construction not working...
Dec 07, 2012 05:11 AM|LINK
p = new
"WorkingDirectory Searching Strat");
"Got it WorkingDirectory");
"Prepairing Arg List");
p.StartInfo.Arguments = Session.SessionID +
+ dssServerName + " " + dscDatabaseName.Replace("tnw",
" " + version;
" Printing Arg List "
"Fetch Process Started");
"Waiting for Process to be Finished");
"WaitForExit Process Finished");
The above code i am callling from event handler from aspx.cs pages and i have placed the vb script into the desire folder. when i am running from asp.net dev env it is working fine. but problem is when I am publishing
through IIS 5.1 it is not working. it is seems to hanged it is not doing the necessary action. I have tested for simple vb script also it also hanged so please any one suggest me that it will work in IIS 5.1 or not.. thanks in advacned...