Re: Rerouting Requests via a Proxy because of .NET "bug"

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: John Saunders (johnwsaundersiii)
Date: 12/03/04


Date: Fri, 3 Dec 2004 11:29:01 -0500


"Codex Twin" <codex@more.com> wrote in message
news:eE$3U6U2EHA.3132@TK2MSFTNGP14.phx.gbl...
>I am re-sending this in the hope that it might illicit a response. I have a
> corporate client who forces their workstations to get the proxy server
> details using an automatic proxy discovery script.
>
> Unfortunately, the .NET Framework does not support automatic proxy
> discovery
> scripts. See:
> http://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;307220

This article has nothing to do with web forms applications. In a Web Forms
application, the browser sends a request to the server and gets an HTML
response. The browser may be configured to run an automatic proxy discovery
script and to use the discovered proxy to send to the server. The server
should neither know nor care whether one or more proxies were in the path
between the client and the server.

> The article above details that the way to workaround this is to edit the
> machine.config file. This is impossible for me. Luckily there is a
> programmtic way of assigning the proxy settings. The way to do it is
> detailed in this article:
> http://support.microsoft.com/kb/q318140/
>
> The second article explains how to handle requests when there is a proxy
> server between the .NET client and the web service. Unfortunately the
> solution only deals with Web Services. The WebService class has a Proxy
> property to which an object of type of IWebProxy can be passed - and all
> is
> good.

...

> But in my case, I have an ASP.NET web forms app, not a Web Service. So how
> do I try and route my client requests via the Proxy server
> programmatically?

As I said, "you don't, the browser does".

Obviously something isn't working the way you expect it to, and that makes
you think that you need to do something about proxies. Please tell us what
the symptom is, and we can help you find the disease. The disease is
probably not "server-side proxy setup".

John Saunders



Relevant Pages

  • Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
    ... You could do it as a web service. ... The handler can draw on the webservice for information and db lookup. ... IE posts data AJAX to handler on web server ... featured application (say thick client) which does a lot of complicate ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Please enter password for HTTP proxy
    ... Web Proxy log: WEBEXTDyyyymmdd.log ... This newsgroup only focuses on SBS technical issues. ... |> on to the SBS server that hosts the ISA. ... |> sure the problematic clients also have Firewall Client installed. ...
    (microsoft.public.windows.server.sbs)
  • RE: Asynchronous Web Service Method Failure
    ... this is an ASP page calling the ... >that pops up if the proxy can't reconcile the web method parameters. ... I cannot return a .pdf document object from a web service method ... >> On the server side, it's not a background thread any more than any other ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: Proxy requires authentication
    ... problem where it is being asked to authenticate to the proxy server. ... sure the problematic client also have Firewall Client installed. ... | Thread-Topic: Proxy requires authentication ...
    (microsoft.public.windows.server.sbs)
  • Re: Impersonated login to web service from outside domain
    ... the client is part of the domain group. ... : integrated windows auth fails. ... You can try creating an identical local user on the server (as the one you ... next call to the web service (ie. the process requiring the credentials to ...
    (microsoft.public.dotnet.framework.aspnet.security)