It sounds very similar to a problem I recently encountered that was caused by the automatic proxy detection settings in Internet Properties on Windows.
The Amazon SDK uses WebRequest to make it HTTP requests, and by default WebRequest adheres to the Internet option of computers to detect local proxies. Fortunately, WebRequest has the static property WebRequest.DefaultWebProxy , which when set to null removes automatic proxy detection.
All you have to do is set it to null before you start using AmazonS3 :
WebRequest.DefaultWebProxy = null;
It is worth noting that this static property needs to be set only once for the application domain, and not every time you want to create an AmazonS3 object.
Alternative approach:
If you do not mind reconfiguring the machine, go to:
Windows Control Panel > Internet Options > Connections > Lan Settings
and uncheck "Automatically detect settings." If you use this approach, you do not need to set the DefaultWebProxy property DefaultWebProxy all.
Additional Information:
When I ran into a problem, I asked the following question about SO:
How to disable automatic proxy detection in the `AmazonS3` object?
He has more details than my answer here if you are interested.
source share