Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / April 2005

Tip: Looking for answers? Try searching our database.

C#.NET application does not respect IE proxy settings

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robb Gilmore - 15 Apr 2005 20:57 GMT
Posting this again as: rgilmore@newsgroup.nospam
(Also posted under dotnet.general)

We have a C# .NET app which runs as a service.
It posts data to a server using HttpWebrequest.  
According to the docs I 've read, it should use the proxy settings from IE
on the server machine.  But it doesn't, it always posts straight to the
server.
I tried forcing it by doing this:

WebProxy defaultProxy = WebProxy.GetDefaultProxy();
webRequest.Proxy = defaultProxy;

But that doesn't seem to make it use the proxy settings either.
On the flip side, a client I have which calls webservices DOES respect the
proxy settings without my ever telling it to do so.
How do I get the HttpWebRequest to respect the IE proxy settings?

thanks
Robb
Kevin Yu [MSFT] - 16 Apr 2005 03:02 GMT
Hi Robb,

Thanks for your posting. Regarding on this issue, I've found another
duplicated thread in microsoft.public.dotnet.general and I have posted
reply there. I'd appreciate if you have a look there. In addition, if you
feel convenient that we continue to discuss in that thread, please feel
free to post there.

Kevin Yu
Signature

=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.