I've encountered the same issue but using a webclient for downloading a file from the internet with a Winform application the solution was adding in the app.config:
The same solution will work for an asp.net app inserting the same rows in web.config.