HttpWebRequest giving "target machine actively refused" error
Posted
by
user1371314
on Stack Overflow
See other posts from Stack Overflow
or by user1371314
Published on 2012-06-29T03:14:15Z
Indexed on
2012/06/29
3:15 UTC
Read the original article
Hit count: 224
I am trying to access a URI through HttpWebRequest and am getting the "target machine actively refused" error.
I know from a machine that has no proxy this works fine and i know my corp internet uses a PAC file to determine the proxy however it doesnt seem to be picking this up for me.
Here is what i know:
- My app.config has
- I presume i dont need to specify WebRequest.DefaultWebProxy but that makes no difference
- I can explictly set the proxy with WebProxy and NetworkCredentials which works
Any ideas? Anybody have experience with PAC files and why I can access the target through IE but not through code. obviously if i hardcode the proxy it all works so it would seem that this same proxy is not being auto detected?
© Stack Overflow or respective owner