I'm getting an error when calling a method of an ASP.NET MVC controller from Classic ASP using XMLHTTPRequest.
msxml3.dll error '80072ee2'
The operation timed out
/createpaymentlink_ajax.asp, line 198
As I debugged the whole code the method calling is going to an ASP.NET MVC controller, but it's taking time to get output from database and before getting that response, I am facing this timeout issue in classic ASP.
function getHTML (strUrl)
Dim xmlHttp
Set xmlHttp = Server.Createobject("MSXML2.ServerXMLHTTP.3.0")
xmlHttp.SetTimeouts 600000, 600000, 15000, 15000
xmlHttp.Open "GET", strUrl, True
xmlHttp.SetRequestHeader "Content-Type", "application/xml; charset=UTF-8"
xmlHttp.SetRequestHeader "Accept", "application/xml; charset=UTF-8"
xmlHttp.Send
If xmlHttp.waitForResponse(90) Then
http_response = xmlHttp.responseText
End If
getHTML = "COMPLETED"
set xmlHttp = Nothing
end function
I'm currently using this code to call method from classic ASP.
I've also tried to added SetTimouts
and waitForResponse
as well.
Can anyone please help me ?