I have a legacy HTTP client application developed with VB on .NET Framework 2.0 long ago. Recently a new proxy server was introduced into our network and the VB app started meeting "407 Proxy Authentication Required" error.
The proxy requires NTLM authentication and the program didn't consider it.
After googling some web resources, I wrote the following code.
Dim proxy As New System.Net.WebProxy("http://my.proxy.com:81")
proxy.Credentials = System.Net.CredentialCache.DefaultCredentials
proxy.UseDefaultCredentials = true
webreq.Proxy = proxy
But I'm still seeing 407 error. User is logging into Windows domain.
I tried some different (but similar) ways but don't succeed.
Can anyone point what I may be missing?
Is there any possibility that any security policy setting may prevent this from working?
I can contact the network administrator but he is not familiar with application development and I don't know what I should ask him, neither.
Any help would be appreciated.