|Problem||I'm coding up a Live Mesh sample. I'm using Visual Studio to attempt to create a programmatic link to the Mesh. I run it. It was failing.|
|Explanation||(407) Proxy Authentication Required.|
So, my app was attempting to authenticate to the Windows Live Passport service, but the Telecom Web Proxy wasn't allowing my credentials through. I needed a way of tunneling through the Telecom Web Proxy.
|Solution||// Set the system proxy with valid server address or IP and port|
System.Net.WebProxy pry = new System.Net.WebProxy("akisa-ary1.telecom.tcnz.net", 8080);
// The DefaultCredentials automatically get username and password
pry.Credentials = CredentialCache.DefaultCredentials;
// Deprecated: GlobalProxySelection.Select = pry;
WebRequest.DefaultWebProxy = pry;
Other related posts:
Geek Post Monthly Newsletter Volume 2 Issue 6
Exam 70-300 Objective 3
COALESCE T-SQL Function
Add a comment
Please note: comments that are inappropriate or promotional in nature will be deleted.
E-mail addresses are not displayed, but you must enter a valid e-mail address to confirm your comments.
Are you a registered Geekzone user? Login to have the fields below automatically filled in for you and to enable links in comments. If you have (or qualify to have) a Geekzone Blog then your comment will be automatically confirmed and shown in this blog post.