Im having a weird https problem with vb.net.
On my computer, this code runs perfectly fine (both segments), but on my partners, who also has vb.net installed, both methods error with a nice:
But if the codes (either) are standard http, it works fine for the both of us. Ive havent the slightest clue of whats going on. Any help would be greatly appreciated this has stopped development dead in its tracks. Example code is below.
Thanks
On my computer, this code runs perfectly fine (both segments), but on my partners, who also has vb.net installed, both methods error with a nice:
Code:
An unhandled exception of type System.Net.WebException occurred in system.dll
Additional information: The underlying connection was closed: The remote name
could not be resolved.
But if the codes (either) are standard http, it works fine for the both of us. Ive havent the slightest clue of whats going on. Any help would be greatly appreciated this has stopped development dead in its tracks. Example code is below.
Code:
Dim url As String
url = "https://www.megaproxy.com" https always errors, http doesnt
Method 1
Dim wr As System.Net.WebRequest
wr = System.Net.WebRequest.Create(url)
Dim st As IO.StreamReader = New IO.StreamReader(wr.GetResponse.GetResponseStream)
MsgBox(st.ReadToEnd)
Method 2
Dim wb As New Net.WebClient(), b() As Byte
b = wb.DownloadData(url)
MsgBox(System.Text.Encoding.Default.GetString(b))
Thanks