Hi all,
I was trying to get clarification on this :
Method-1:
Dim request = CreateRequest(uri) //some uri
Dim response = DirectCast(request.GetResponse, HttpWebResponse)
response.Close()
Method-2:
Dim request = Createrequest(uri)
Using response = DirectCast(request.GetResponse, HttpWebResponse)
End Using
When I used both Method-1 and Method-2 on my local machine to connect and get a response from a remote machine X, both of them worked properly.
When I used this code on a remote machine Y to get response from X, only the Method-1 is working, and for Method-2, I am getting
System.Net.WebException: The operation has timed out
Whats the difference between the Methods mentioned above and what might be the possible problem ?
Help in this regard would be greatly appreciated .. :)
Thanks,
Mahesh Velaga.