WebClient with ISA Server using Windows Authentication Error 407 
Author Message
 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



Mon, 15 Aug 2005 02:44:45 GMT  
 WebClient with ISA Server using Windows Authentication Error 407
( Sorry for the repost but my last post didnt get any responses and I was
hoping a second try might yield a few helpful souls out there  :) )

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.awebserver.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



Tue, 16 Aug 2005 19:53:54 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Wininet API connection through proxy - can't get by error 407 (authentication)

2. Wininet API connection through proxy - can't get by error 407 (authentication)

3. Wininet API connection through proxy - can't get by error 407 (authentication)

4. Error 405(Method not allowed) error in using webclient.uploadfile method

5. SQL Server Windows Authentication : How to connect a different user then the current Windows login user

6. SQL Server Windows Authentication : How to connect a different user then the current Windows login user

7. Webclient and Basic Authentication

8. script for changing server publishing rules on ISA Server

9. Using Forms Authentication to avoid the Windows Logon Box

10. Windows Authentication using System.Security.Principal namespace

11. SQL Connection using Windows Authentication

12. Using XMLHTTP to send cookies to a server with Integrated Authentication

 

 
Powered by phpBB® Forum Software