Odd Https (SSL)

ccc

Newcomer
Joined
Dec 13, 2002
Messages
8
Im having a weird https problem with vb.net.

On my computer, this code runs perfectly fine (both segments), but on my partner's, 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. I've haven't 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.

Visual Basic:
Dim url As String
url = "https://www.megaproxy.com" 'https always errors, http doesn't

'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
 
The only type of error that myself and others have run across concerning HTTPS is a result of an invalid certificate on the secure server. The certificate may have expired or is not signed by a trusted source. Make sure that isn't the case.
 
Back
Top