WebClient and proxy server (Ntlm auth maybe?)
Having some issues connecting to internet from an application where a customer is using a proxy server.
The following code seems to work most other customers, including those that use proxies.

    Dim wc As New WebClient
    wc.UseDefaultCredentials = True
    wc.Proxy = WebRequest.DefaultWebProxy
    
    wc.Proxy.Credentials = wc.Credentials
    Dim responseBytes As Byte() = wc.DownloadData("http://www.google.co.uk")

Error is:

> System.Net.WebException: The remote
> server returned an error: (407) Proxy
> Authentication Required.

Previously this same way of connecting did work using their old proxy server, now it doesn't work. 
The customer has recently changed proxy server to one that uses NTLM authentication, so I guess this could be the issue.

Any ideas how I should be connecting any differently to above example?

Thanks,
Mike G
WebClient and proxy server (Ntlm auth maybe?)
===

Having some issues connecting to internet from an application where a customer is using a proxy server.
The following code seems to work most other customers, including those that use proxies.

    Dim wc As New WebClient
    wc.UseDefaultCredentials = True
    wc.Proxy = WebRequest.DefaultWebProxy
    
    wc.Proxy.Credentials = wc.Credentials
    Dim responseBytes As Byte() = wc.DownloadData("http://www.google.co.uk")

Error is:

> System.Net.WebException: The remote
> server returned an error: (407) Proxy
> Authentication Required.

Previously this same way of connecting did work using their old proxy server, now it doesn't work. 
The customer has recently changed proxy server to one that uses NTLM authentication, so I guess this could be the issue.

Any ideas how I should be connecting any differently to above example?

Thanks,
Mike G