I have a ASP.NEt site that runs from behind a proxy. I configure the proxy in my web.config. I have noticed something strange I don't know. When I remove the web.config setting on my developer box (Windows 7 x64 with IE8) ASP.NET uses my setting from IE8.
On my testing server (windows 2003,IE8 ) ASP.NET doesn't use IE setting and I always need to set proxy in web.config.It also seems te care if I use WebRequest or HttpWebRequest
I know ho to use a webproxy object. But is not necesary when using default proxy in web.config.
But why does .NET uses IE proxy settings on my developer box (so no need for web.config setting or creating a webproxy object) but when I deploy to central server (Acceptance) I need to set the default proxy in web.config. Then .NET doen't use IE setting.
Why? Same IE version
I know ho to use a webproxy object. But is not necesary when using default proxy in web.config.
But why does .NET uses IE proxy settings on my developer box (so no need for web.config setting or creating a webproxy object) but when I deploy to central server (Acceptance) I need to set the default proxy in web.config. Then .NET doen't use IE setting.
Why? Same IE version
this because when in your developer box you can access your local PC folders and configuration.
in production environment the IIS uses a less privilege user (unless changed)
waaromikniet
Member
5 Points
11 Posts
Configure ASP.NET to use proxy
Apr 27, 2010 09:44 AM|LINK
Hello,
I have a ASP.NEt site that runs from behind a proxy. I configure the proxy in my web.config. I have noticed something strange I don't know. When I remove the web.config setting on my developer box (Windows 7 x64 with IE8) ASP.NET uses my setting from IE8. On my testing server (windows 2003,IE8 ) ASP.NET doesn't use IE setting and I always need to set proxy in web.config.It also seems te care if I use WebRequest or HttpWebRequest
Anybody any idea? What is the way to go?
Thanks in advance
Danny
zaid quraan
Member
118 Points
29 Posts
Re: Configure ASP.NET to use proxy
Apr 28, 2010 08:24 AM|LINK
hello
you can try
Dim p As New WebProxy p.Address = New Uri("") ' proxy IP p.Credentials = New NetworkCredential("userName", "Password") HttpWebRequest.Proxy = pwaaromikniet
Member
5 Points
11 Posts
Re: Configure ASP.NET to use proxy
Apr 28, 2010 10:01 AM|LINK
I know ho to use a webproxy object. But is not necesary when using default proxy in web.config.
But why does .NET uses IE proxy settings on my developer box (so no need for web.config setting or creating a webproxy object) but when I deploy to central server (Acceptance) I need to set the default proxy in web.config. Then .NET doen't use IE setting. Why? Same IE version
zaid quraan
Member
118 Points
29 Posts
Re: Configure ASP.NET to use proxy
Apr 28, 2010 10:13 AM|LINK
this because when in your developer box you can access your local PC folders and configuration.
in production environment the IIS uses a less privilege user (unless changed)
hope i helped you!
waaromikniet
Member
5 Points
11 Posts
Re: Configure ASP.NET to use proxy
Apr 28, 2010 10:20 AM|LINK
I run both sites in IIS. Not from Visual Studio.
On my devloper box I created a site within IIS7.5 on my acceptance server IIS6
So I think they should both run under less privileged user.
Correct?
zaid quraan
Member
118 Points
29 Posts
Re: Configure ASP.NET to use proxy
Apr 28, 2010 10:42 AM|LINK
check if anonymous access is used at directory security in IIS 6.
and what user is used.
waaromikniet
Member
5 Points
11 Posts
Re: Configure ASP.NET to use proxy
Apr 28, 2010 11:18 AM|LINK
Both sites run under app pool user network_service.
alloovee2
Member
11 Points
7 Posts
Re: Configure ASP.NET to use proxy
Feb 22, 2013 03:28 AM|LINK
I got the same issue !
How to config the IIS to enable the website to read the IE proxy settings ?