473,813 Members | 3,723 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WebProxy.GetDef aultProxy is empty.

I am using the WebProxy.GetDef aultProxy() 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*******@n0spa m-SoftiTechture.c om
http://www.SoftiTechture.com
_______________ _______________ _
Nov 23 '05 #1
2 5668
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.GetDef aultWebProxy = null

or
WebProxy.GetDef aultProxy().Add ress 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.GetDef aultProxy() 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*******@n0spa m-SoftiTechture.c om
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*******@n0spa m-SoftiTechture.c om
http://www.SoftiTechture.com
_______________ _______________ _
"Malar" <Ma***@discussi ons.microsoft.c om> wrote in message
news:C1******** *************** ***********@mic rosoft.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.GetDef aultWebProxy = null

or
WebProxy.GetDef aultProxy().Add ress 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.GetDef aultProxy() 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*******@n0spa m-SoftiTechture.c om
http://www.SoftiTechture.com
_______________ _______________ _

Nov 23 '05 #3

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

Similar topics

0
1834
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
3962
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 can read the application cache and extract the hashtable but I can't figure out how to "create" the object now? Someone at the office told me this would work and I'm thinking we are missing something, maybe I should serialize it? I am trying to...
2
10557
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??? s... *** Sent via Developersdex http://www.developersdex.com ***
4
13374
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 NetworkCredential(proxyUsername, proxyPassword); request.Proxy = proxy; Now suppose the *proxy server* authenticates using NTLM (somepage.com does NOT require any authentication its just a webpage). How does one
0
3708
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 using proxy servers that this doesn't work and the web service does not connect. System.Net.WebProxy proxy = System.Net.WebProxy.GetDefaultProxy(); Any suggestions on how I can get the actual proxy settings that IE is using, even if it...
4
3488
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 into all kinds of problems because I'm behind a firewall. After much searching I found using WebProxy, NetworkCredentials and HttpWebResponse/Request to be quite useful but again it's not really working the way I'd like. So I decided to setup a...
3
9108
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 System.Net; string proxyUrl = http://itgproxy.redmond.corp.microsoft.com; WebProxy proxy = new WebProxy(proxyUrl, true); MSNSearchService.Proxy = proxy;
3
4222
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 WebProxy("http://www.autoconfig/pac", true); That url is exactly what I enter into Firefox advanced settings to get beyond the office firewall here, but C# does not like it.
7
2995
by: Phil | last post by:
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...
0
9734
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10669
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10408
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9225
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7686
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5707
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3886
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3030
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.