Click here to Skip to main content
15,035,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Subject: VB: How to use Internet Explorer proxy setting in the desktop application?

Dears all:

My desktop application fetches XML data via DSL at my home, but gives
exception on Internet access via proxy server in my office LAN.

Please help me.

Muhammad Islam

1 solution

Have a look at the Default Web Proxy[^] and Default Credentials[^] properties available to you

Either set these programatically against your 'WebRequest' object


request.Proxy = System.Net.WebProxy.GetDefaultProxy();
request.Proxy.Credentials = CredentialCache.DefaultCredentials; 

..or you can define the settings in your application config file

<defaultProxy enabled="true" useDefaultCredentials="true" >
<proxy autoDetect="True" scriptLocation=""/>
Muhamamd Islam 10-Mar-11 8:05am
Thanks and regards. I'll check it in my office and will tell you the result.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900