I'm trying to reproduce the C# example provided below on howto change the scheme for the URI to point at https (secure socket layer) instead of http.

Link to example: http://blogs.msdn.com/kaevans/archiv...16/493496.aspx.

I'm getting loads of different errors in VB.NET, might be my framework that is broken?

Can anyone please reproduce it in VB.NET?