My application is design to open a web page and read the response and display it in a textbox . The page conducts some backend processing which take between 10-15 mins to complete then it is displayed. The problem is my app times out prior to completion. Opening the page in a browser works just fine. It seems that my app is the one timing out.
Dim myReq As HttpWebRequest = CType(WebRequest.Create(URL), HttpWebRequest)
myReq.ContentType = "application/x-www-form-urlencoded"
myReq.Method = "GET"
myReq.Credentials = CredentialCache.DefaultCredentials
Dim myRes As HttpWebResponse = myReq.GetResponse
myReq.Timeout = "99999999999"
Dim stream As System.IO.Stream = myRes.GetResponseStream()
Dim streamReader As System.IO.StreamReader = New System.IO.StreamReader(stream, System.Text.Encoding.ASCII)
Dim strRes As String = streamReader.ReadToEnd
TextBox1.Text = strRes