Re: HttpWebRequest error

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Having 2 ISA server that require authentication is going to make it a lot 
more complex. The way I would handle this is look at it as two separate 
problems the first problem is you need code that can authenticate through 
both the proxies and access a resource at the other end. Your probably 
better of removing Exchange from the equation for a while and just try to 
hit a resource at the other end that wont require you to authenticate. What 
happens when you try and access this resource using a normal browser do you 
have to authenticate twice. If you do then its likely that you will have to 
do the same thing in your code.

Once you can successfully access a anonymous resource you can then look at 
the Exchange authentication part the first thing you need to consider is 
what type of authentication is being use on the server eg is it basic over 
SSL is it NTLM or Forms Based authentication each would require a different 
approach.

Cheers
Glen

<mark.macumber@xxxxxxxxx> wrote in message 
news:1138748954.835098.16860@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> oh ok then, I see, I did try it but my webmail is on a secure site i.e.
> https and it doenst allow https in the location URL bar. But I get the
> gist of what it is doing...
>
> I really need to find out where the error is comming from, I'm quite
> certain that it is not getting to the Exchange server. But I found out
> very late yesterday that there are 2 ISA proxy servers running, both of
> which require authentication. What happens if I only specify the first
> one in the .NET code as in I add a proxy address and credentials to the
> applciation as shown below:
>
> WebProxy proxy = new
> WebProxy(System.Configuration.ConfigurationSettings.AppSettings["Proxy"]);
>
> proxy.Credentials = new NetworkCredential(strUserName, strPassword,
> strDomain);
> PROPPATCHRequest.Proxy = proxy;
>
> So the request will pass the user credentials to this proxy server.
> What happens if the proxy server specified above passes my request to
> another proxy server (i.e. the 2nd ISA server) before it goes to the
> exchange server?
>
> Now, I know im not getting an authentication error, but maybe its
> looking for the exchange server but comming to a proxy first, so then
> the bad gateway error occurs???
>
> Im not really sure on how all this request handling works, but I think
> im learning so much here, thanks for all the effort so far. I really
> appreciate it
> 


.



Relevant Pages

  • Re: WM5 can not sync to exchange
    ... On the SBS 2003 Server open the Server Management console. ... Please verify Authentication settings by the following steps. ... Open IIS Manager ... Collect the IIS metabase on Exchange Server and send to me: ...
    (microsoft.public.windows.server.sbs)
  • RE: Proxy Authentication
    ... Both the old and new server have only one NIC and we only ... >> trouble getting authentication to work like in Proxy 2.0. ... >> allowed to browse through the proxy server. ... I would also like this prompt to be able to handle an expired ...
    (microsoft.public.isa.clients)
  • [NT] Vulnerability in Exchange Server 2003 Could Lead to Privilege Escalation (MS04-002)
    ... Access on Windows 2000 and Windows Server 2003, ... back-end Exchange 2003 servers that are running Windows Server 2003. ... Kerberos authentication is used as the HTTP authentication ... Windows Server 2003 server that also functions as an Exchange Server 2003 ...
    (Securiteam)
  • Re: Problems sending email in SBS 2008
    ... The default connector has the following ticks on the Authentication ... Ticked - Exchange Server Authentication ...
    (microsoft.public.windows.server.sbs)
  • Re: Periodic http_500 errors
    ... Synchronization failed due to an error on the server. ... An authentication error occurred connecting to the server. ... Kerberos authentication when communicating with the Exchange server. ...
    (microsoft.public.pocketpc.activesync)