471,594 Members | 1,923 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,594 software developers and data experts.

WebProxy.GetDefaultProxy is empty.

I am using the WebProxy.GetDefaultProxy() function to read the IE settings, but it's returning an empty WebProxy object. Are there any known reasons why this is not reading the proxy settings in IE 6?

Thanks,

Sam

--
_______________________________
Sam Santiago
ss*******@n0spam-SoftiTechture.com
http://www.SoftiTechture.com
_______________________________
Nov 23 '05 #1
2 5494
It should.. Which version of the framework are you using? 1.1 or 2.0

What is your IE Settings ?
GoTo Tools-> InternetOptions -> Connections-> lansettings

Are you using any config files?

Do you mean that you are getting
webProxy.GetDefaultWebProxy = null

or
WebProxy.GetDefaultProxy().Address as null

For the later to return a value the Tools-> InternetOptions ->
Connections-> lansettings->proxyServer has to be explicitly set


"Sam Santiago" wrote:
I am using the WebProxy.GetDefaultProxy() function to read the IE settings, but it's returning an empty WebProxy object. Are there any known reasons why this is not reading the proxy settings in IE 6?

Thanks,

Sam

--
_______________________________
Sam Santiago
ss*******@n0spam-SoftiTechture.com
http://www.SoftiTechture.com
_______________________________

Nov 23 '05 #2
This is with the .NET framework 1.1. I did set the settings in IE in the
correct location. The returned WebProxy object in not null, but none of the
settings from IE are in it. As if the proxy settings in IE were not set.

Thanks,

Sam

--
_______________________________
Sam Santiago
ss*******@n0spam-SoftiTechture.com
http://www.SoftiTechture.com
_______________________________
"Malar" <Ma***@discussions.microsoft.com> wrote in message
news:C1**********************************@microsof t.com...
It should.. Which version of the framework are you using? 1.1 or 2.0

What is your IE Settings ?
GoTo Tools-> InternetOptions -> Connections-> lansettings

Are you using any config files?

Do you mean that you are getting
webProxy.GetDefaultWebProxy = null

or
WebProxy.GetDefaultProxy().Address as null

For the later to return a value the Tools-> InternetOptions ->
Connections-> lansettings->proxyServer has to be explicitly set


"Sam Santiago" wrote:
I am using the WebProxy.GetDefaultProxy() function to read the IE
settings, but it's returning an empty WebProxy object. Are there any
known reasons why this is not reading the proxy settings in IE 6?

Thanks,

Sam

--
_______________________________
Sam Santiago
ss*******@n0spam-SoftiTechture.com
http://www.SoftiTechture.com
_______________________________

Nov 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Jamie Laundon | last post: by
1 post views Thread by Jim Douglas | last post: by
2 posts views Thread by Ricardo Luceac | last post: by
4 posts views Thread by vooose | last post: by
reply views Thread by Michael S. Scherotter | last post: by
4 posts views Thread by Andrew | last post: by
3 posts views Thread by =?Utf-8?B?TXJOb2JvZHk=?= | last post: by
7 posts views Thread by Phil | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.