0

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 ?

17
  • See following : stackoverflow.com/questions/579523/… Commented Jul 9, 2022 at 14:55
  • @jdweng, I Tried, But Not working. Commented Jul 9, 2022 at 15:53
  • Does this answer your question? How do I set the request timeout for one controller action in an asp.net mvc application Commented Jul 9, 2022 at 15:59
  • 1
    Right @user692942, this is not helpful Commented Jul 11, 2022 at 7:36
  • 1
    I also facing same issue as well as i tried all the solution but its not work for me as well. Commented Jul 18, 2022 at 5:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.