
WebClient with ISA Server using Windows Authentication Error 407
Hi all, Im trying to use the WebClient to access a HTTP URL and retieve the
data. Everything works fine on a dial up or 'direct' internet connection
but then when I try my app on a LAN I get the following error message; (My
LAN uses an ISA server with windows authentication for web access.)
System.Net.WebException: The remote server returned an error: (407) Proxy
Authentication Required.
I have tried various settings with System.Net.Proxy, setting the global
Proxy settings and using default credentials
Quote:
>> Dim client As New WebClient()
>> client.Credentials = CredentialCache.DefaultCredentials
>> Dim responseData As [Byte]() =
client.UploadValues(" http://www.*-*-*.com/ ", form)
If I launch IE on a desktop it doesnt ask me for authentication, so why does
a .NET app work differently to IE ? Cant I just get .NET just forward the
Windows credentials to the ISA server - isnt that what DefaultCredentials
is supposed to do ? .NET doesnt ignore the IE settings because it trys to
use the correct ISA server, but just doesnt send the credentials it seems...
:(
Can anyone help?
Cheers, Jack