473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

WebProxy.GetDefaultProxy

According to the help this method is obsolete, but there is no hint as to
what to use now instead.
It does seem to work for me, although I get a warning error from the
compiler.
The warning message contains a link to the microsoft website, but this link
just takes you to the .Net framework home page:
http://go.microsoft.com/fwlink/?linkid=14202
Can anyone provide the correct link and/or please explain what should now be
used instead of GetDefaultProxy.

TIA
Phil.

Jul 17 '08 #1
7 2963
Hi Phil,

As for the proxy setting support in .net framework 2.0, it's greatly
enhanced. The following article is a very good one which almost convers all
the proxy related features in .net framework:

#Proxy Detection Take the Burden Off Users with Automatic Configuration in
..NET
http://msdn.microsoft.com/en-us/magazine/cc300743.aspx

for the default proxy, in .net framework 2.0, it expose this via the
"WebRequest.DefaultWebProxy" property:

#WebRequest..::.DefaultWebProxy Property
http://msdn.microsoft.com/en-us/libr...defaultwebprox
y.aspx

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>NNTP-Posting-Date: Thu, 17 Jul 2008 06:26:09 -0500
From: "Phil" <N/A>
Newsgroups: microsoft.public.dotnet.languages.vb
Subject: WebProxy.GetDefaultProxy
Date: Thu, 17 Jul 2008 12:26:05 +0100
>
According to the help this method is obsolete, but there is no hint as to
what to use now instead.
It does seem to work for me, although I get a warning error from the
compiler.
The warning message contains a link to the microsoft website, but this link
just takes you to the .Net framework home page:
http://go.microsoft.com/fwlink/?linkid=14202
Can anyone provide the correct link and/or please explain what should now
be
>used instead of GetDefaultProxy.

TIA
Phil.

Jul 18 '08 #2

"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:PZ**************@TK2MSFTNGHUB02.phx.gbl...
Hi Phil,

As for the proxy setting support in .net framework 2.0, it's greatly
enhanced. The following article is a very good one which almost convers
all
the proxy related features in .net framework:

#Proxy Detection Take the Burden Off Users with Automatic Configuration in
NET
http://msdn.microsoft.com/en-us/magazine/cc300743.aspx

for the default proxy, in .net framework 2.0, it expose this via the
"WebRequest.DefaultWebProxy" property:

#WebRequest..::.DefaultWebProxy Property
http://msdn.microsoft.com/en-us/libr...defaultwebprox
y.aspx
Thanks,

I'll take a look at this when I get a chance.

Cheers,
Phil.
Jul 21 '08 #3
Thanks for your reply Phil,

No problem. If you have any further questions on this later, please feel
free to post here at your convenience.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>Newsgroups: microsoft.public.dotnet.languages.vb
References: <Vr******************************@posted.plusnet >
<PZ**************@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: WebProxy.GetDefaultProxy
Date: Mon, 21 Jul 2008 17:19:28 +0100
>

"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:PZ**************@TK2MSFTNGHUB02.phx.gbl...
>Hi Phil,

As for the proxy setting support in .net framework 2.0, it's greatly
enhanced. The following article is a very good one which almost convers
all
the proxy related features in .net framework:

#Proxy Detection Take the Burden Off Users with Automatic Configuration
in
>NET
http://msdn.microsoft.com/en-us/magazine/cc300743.aspx

for the default proxy, in .net framework 2.0, it expose this via the
"WebRequest.DefaultWebProxy" property:

#WebRequest..::.DefaultWebProxy Property
http://msdn.microsoft.com/en-us/libr...defaultwebprox
>y.aspx
Thanks,

I'll take a look at this when I get a chance.

Cheers,
Phil.
Jul 22 '08 #4
>
No problem. If you have any further questions on this later, please feel
free to post here at your convenience.
At the moment GetDefaultProxy seems to work fine here (we have ISA server on
our LAN). Am I likely to have any issues/problems with other proxies when we
start shipping the software out to other companies? At the moment I am
tempted to leave it as it is, and worry about it if/when users begin
reporting problems.

Cheers,
Phil.
Jul 22 '08 #5
Thanks for your reply Phil,

The DefaultProxy you get is the existing one on the machine(for the user
context), if your target deployment environment also has such a default
proxy exists, that will also work well. If you fear that the environment
may be different, you may consider add a global configuration setting in
your application so that the use can manually specify a proxy address. And
in your application's startup code, you can assign this address to the
"WebRequest.DefaultWebProxy"
How do you think?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>References: <Vr******************************@posted.plusnet >
<PZ**************@TK2MSFTNGHUB02.phx.gbl>
<1o******************************@posted.plusnet >
<NS**************@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: WebProxy.GetDefaultProxy
Date: Tue, 22 Jul 2008 14:09:49 +0100
>
>>
No problem. If you have any further questions on this later, please feel
free to post here at your convenience.
At the moment GetDefaultProxy seems to work fine here (we have ISA server
on
>our LAN). Am I likely to have any issues/problems with other proxies when
we
>start shipping the software out to other companies? At the moment I am
tempted to leave it as it is, and worry about it if/when users begin
reporting problems.

Cheers,
Phil.
Jul 23 '08 #6
Hi Phil,

Do you still have any questions on this issue or is everything going well?

Sincerely,

Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>Content-Transfer-Encoding: 7bit
From: st*****@online.microsoft.com (Steven Cheng [MSFT])
Organization: Microsoft
Date: Wed, 23 Jul 2008 02:10:57 GMT
Subject: Re: WebProxy.GetDefaultProxy
>
Thanks for your reply Phil,

The DefaultProxy you get is the existing one on the machine(for the user
context), if your target deployment environment also has such a default
proxy exists, that will also work well. If you fear that the environment
may be different, you may consider add a global configuration setting in
your application so that the use can manually specify a proxy address. And
in your application's startup code, you can assign this address to the
"WebRequest.DefaultWebProxy"
How do you think?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

================================================= =
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ault.aspx#noti
f
>ications.

================================================= =
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>>References: <Vr******************************@posted.plusnet >
<PZ**************@TK2MSFTNGHUB02.phx.gbl>
<1o******************************@posted.plusne t>
<NS**************@TK2MSFTNGHUB02.phx.gbl>
>>Subject: Re: WebProxy.GetDefaultProxy
Date: Tue, 22 Jul 2008 14:09:49 +0100
>>
>>>
No problem. If you have any further questions on this later, please feel
free to post here at your convenience.
At the moment GetDefaultProxy seems to work fine here (we have ISA server
on
>>our LAN). Am I likely to have any issues/problems with other proxies when
we
>>start shipping the software out to other companies? At the moment I am
tempted to leave it as it is, and worry about it if/when users begin
reporting problems.

Cheers,
Phil.

Jul 25 '08 #7
Do you still have any questions on this issue or is everything going well?
I think I now have enough information about where to look if/when it becomes
an issue, so I'm fine for now.
Thanks,
Phil.
Jul 28 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jamie Laundon | last post by:
Hi, WebProxy.GetDefaultProxy() has been deprecated in .NET 2.0, what is the preferred new method of retrieving IE Proxy settings? Thanks, Jamie
1
by: Jim Douglas | last post by:
I have a requirement to dynamically create a webProxy object in C#. I have created an instance of the webProxy and stored it within a hashtable then placing the hashtable in cache. When required I...
2
by: Ricardo Luceac | last post by:
I need to use a Proxy to use a webrequest object, but the proxy is not a URI, is a ip address and a port number... How can I create the WebProxy object??? Or use the proxy in other way??? ...
4
by: vooose | last post by:
Consider accessing a webpage through a proxy server: WebRequest request = WebRequest.Create("http://somepage.com"); WebProxy proxy = new WebProxy(proxyHost, proxyPort); proxy.Credentials = new...
2
by: Sam Santiago | last post by:
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...
0
by: Michael S. Scherotter | last post by:
I am building a C# desktop application in .Net 1.1 that consumes web services. I use System.Net.WebProxy.GetDefaultProxy() to get the proxy settings from IE but I get reports from people who are...
4
by: Andrew | last post by:
Morning everybody, I have an XML document located on a web address and I wish to create a C# program to read that XML document and process it - which shouldn't be that difficult yet I'm running...
3
by: John A Grandy | last post by:
I am always RAS'd into MS CorpNet VPN under my REDMOND account. I am always able to ping "itgproxy.redmond.corp.microsoft.com" I instantiate a System.Net.WebProxy object as follows: using...
3
by: =?Utf-8?B?TXJOb2JvZHk=?= | last post by:
I found an example online and when I tried repeating it with the proxy I normally use for my browser, I get errors. What I do is this: WebProxy proxy = new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.