views:

327

answers:

2

Hi Guys,

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 ?

+1  A: 

Be aware that Fiddler acts as a proxy. Having an application work when Fiddler is running but not otherwise could indicate a problem with your default proxy setup. Open Internet Options (possibly through IE) and check your proxy settings. In particular, note whether you are configuring through a script.

I'll mention one very unlikely possibility, though it actually happened to me. I had a Certain Anti-Virus Product installed on my machine. For some reason, it thought that my Subscription had Expired. The result was that the software would not run, and therefore could not update the list of programs allowed to access the Internet. Programs I installed after the expiration would not work unless Fiddler was running (since Fiddler was installed before the expiration, it was on the "Good" list). Any other program installed after the expiration was on the "Bad" list (by default).

John Saunders
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 ?
Do you have it running on your normal Windows system yet? Do that before you concern yourself with Azure.
John Saunders
A: 

Are you running with HTTPS? If so, your code may not trust the remote site's certificate, and Fiddler could be passing along the data to your app. Send us the error message and a minimal amount of code which replicates this problem.

Dave Markle
Hi Dave, yep - running with HTTPS. Im not at my PC where the code is though (at work) any ideas (if this is case) how to fix this prob?
Take a look at http://msdn.microsoft.com/en-us/library/system.net.servicepointmanager.servercertificatevalidationcallback.aspx. You'll probably need to tell your code to accept the cert of the site you're talking to.
Dave Markle
Fiddler will show a modal warning dialog if the site is presenting the wrong certificate, so I don't think that's what this user is encountering.
EricLaw -MSFT-