EDN Admin
Well-known member
OK, its not .NET, this is classic ASP so if this belongs elsewhere let me know.
Ive read hours online about this but have very little to show for it. Basic gist of whats happening: ASP page trying to XML to another ASP page in the same dir. Following code sits for 30 seconds and times out. It actually gets
to the target page at the *end* of the 30 seconds(test email with time-stamp being sent from there) but no response returned. Get method does resolve the querystring but switch to using post and no data at the target page. No response from the
target page gets back to initiating page. As stated, this works fine on the current server running Server 2003. Ive gone through roles, proxycfg(direct access as with the current server), its a page calling a page in the same directory.
In the IIS manager I have set the ISAPI restrictions to allowed for c:windowssystem32msxml3.dll. I have started WinHttpAutoProxySvc. Perhaps a specific feature I need to install or a service to run or...?
error:
<span style="font-family:Arial; font-size:x-small msxml3.dll <span style="font-family:Arial; font-size:x-small
error 80072ee2
<span style="font-family:Arial; font-size:x-small The operation timed out
<span style="font-family:Arial; font-size:x-small /testXML_2.asp <span style="font-family:Arial; font-size:x-small
, line 26
<span style="font-family:Arial; font-size:x-small <br/>
<span style="font-family:Arial; font-size:x-small line 26 is the xml.send line<br/>
Simple code being tested to get the xml working on the new server(testXML_2.asp):
IF UCASE(Request.ServerVariables("HTTPS")) = "ON" THEN<br/>
vWork2 = cfgURLBaseSecure & cfgURLDir<br/>
ELSE<br/>
vWork2 = cfgURLBase & cfgURLDir<br/>
END IF<br/>
<br/>
vXMLAdr = vWork2 & "/testXML.asp"<br/>
vXMLStr = "?EC=E1234567890"<br/>
<br/>
SET xml = Server.CreateObject("MSXML2.ServerXMLHTTP")<br/>
<br/>
vWork = vXMLAdr & vXMLStr<br/>
xml.open "GET", vWork, FALSE<br/>
xml.send<br/>
<br/>
xml.open "POST", vXMLAdr, FALSE<br/>
xml.send vXMLStr<br/>
<br/>
IF xml.status = 200 THEN<br/>
vReturn = xml.responseText<br/>
ELSE<br/>
vReturn = "FAIL"<br/>
END IF
Target page code(testXML.asp):
vWork2 = Request.QueryString("EC")<br/>
vWork3 = Request.form("EC")<br/>
<br/>
vWork = "testXML - Time: " & now() & " querystring: " & vWork2 & " form: " & vWork3<br/>
CALL SendErrorEmail("testXML - new",vWork,"")<br/>
<br/>
Response.Write "Got There and Back"<br/>
Response.end
The reason the one ASP page is using the XML object to contact another is the main use of the target is AJAX with other pages but sometimes the system needs to perform the same function thus this method of interacting with the AJAX page via the system vs
a user via a browser and I would prefer to keep the code in one place. Perhaps there is an alternate I should be considering but the above scenario has been in production just fine for years now.
Any help?
Thanks in advance,
Ken
View the full article
Ive read hours online about this but have very little to show for it. Basic gist of whats happening: ASP page trying to XML to another ASP page in the same dir. Following code sits for 30 seconds and times out. It actually gets
to the target page at the *end* of the 30 seconds(test email with time-stamp being sent from there) but no response returned. Get method does resolve the querystring but switch to using post and no data at the target page. No response from the
target page gets back to initiating page. As stated, this works fine on the current server running Server 2003. Ive gone through roles, proxycfg(direct access as with the current server), its a page calling a page in the same directory.
In the IIS manager I have set the ISAPI restrictions to allowed for c:windowssystem32msxml3.dll. I have started WinHttpAutoProxySvc. Perhaps a specific feature I need to install or a service to run or...?
error:
<span style="font-family:Arial; font-size:x-small msxml3.dll <span style="font-family:Arial; font-size:x-small
error 80072ee2
<span style="font-family:Arial; font-size:x-small The operation timed out
<span style="font-family:Arial; font-size:x-small /testXML_2.asp <span style="font-family:Arial; font-size:x-small
, line 26
<span style="font-family:Arial; font-size:x-small <br/>
<span style="font-family:Arial; font-size:x-small line 26 is the xml.send line<br/>
Simple code being tested to get the xml working on the new server(testXML_2.asp):
IF UCASE(Request.ServerVariables("HTTPS")) = "ON" THEN<br/>
vWork2 = cfgURLBaseSecure & cfgURLDir<br/>
ELSE<br/>
vWork2 = cfgURLBase & cfgURLDir<br/>
END IF<br/>
<br/>
vXMLAdr = vWork2 & "/testXML.asp"<br/>
vXMLStr = "?EC=E1234567890"<br/>
<br/>
SET xml = Server.CreateObject("MSXML2.ServerXMLHTTP")<br/>
<br/>
vWork = vXMLAdr & vXMLStr<br/>
xml.open "GET", vWork, FALSE<br/>
xml.send<br/>
<br/>
xml.open "POST", vXMLAdr, FALSE<br/>
xml.send vXMLStr<br/>
<br/>
IF xml.status = 200 THEN<br/>
vReturn = xml.responseText<br/>
ELSE<br/>
vReturn = "FAIL"<br/>
END IF
Target page code(testXML.asp):
vWork2 = Request.QueryString("EC")<br/>
vWork3 = Request.form("EC")<br/>
<br/>
vWork = "testXML - Time: " & now() & " querystring: " & vWork2 & " form: " & vWork3<br/>
CALL SendErrorEmail("testXML - new",vWork,"")<br/>
<br/>
Response.Write "Got There and Back"<br/>
Response.end
The reason the one ASP page is using the XML object to contact another is the main use of the target is AJAX with other pages but sometimes the system needs to perform the same function thus this method of interacting with the AJAX page via the system vs
a user via a browser and I would prefer to keep the code in one place. Perhaps there is an alternate I should be considering but the above scenario has been in production just fine for years now.
Any help?
Thanks in advance,
Ken
View the full article