I am getting a weird error. I have setup a script that works perfectively when Fiddler is open - it downloads a report from a website using httpwebrequest and everything works fine!
HOWEVER it only works when Fiddler is open ? When fiddler isnt working I just get a "Request Timeout Issue"
Does anyone know how to fix this and make it work with my ASP.NET MVC App?
Thanks
Edit: Thanks for the response! Regarding proxy - I wanted to test this script on Windows Azure - so little confused as to how to setup the default proxy settings ?
For searchers, here is another thought. I have an application that manipulates my website in a robotic fashion. The application uses HttpWebRequest and HttpWebResponse in .Net 4.0. After two or 3 successful GET's, the next would lock up consistently. Another post suggested that not properly closing an HINTERNET could cause an application to block on a subsequent GET to the same host due to a limit on the number of parallel connections to the same host. I don't know if this is what was happening under the covers, but I thought I would go back and determine where I could close things.
I closed all of my HttpWebResponse objects in the code and my issue went away. From this I don't see why Fiddler would mask the issue, but it did. Before adding the closes, a specific request in the sequence would consistently time out. After closing responses, that all cleared up and I could run without proxying through Fiddler.