Vb.net – (407) Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )

PROXYvb.netweb services

I am getting an error when my application tries to communicate with a web service

(407) Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )

I saw a few topics but I could not understand. I am using VB.net

Best Answer

As the error says, your proxy server is preventing access to the service. You can either write some code to ask the user for credentials for the proxy, or (easier) you can put the following in your applications app.config:

<system.net>
    <defaultProxy useDefaultCredentials="true"/>
<system.net>

There are other settings if you have more complex requirements. Try here for guidance

http://msdn.microsoft.com/en-us/library/09361bca