The URLDownloadToFile API returns the status code -2147024891 when attempting to download from a valid HTTP or FTP location. If the URL is pasted into the browser the file is downloaded thus verifying the correctness and accessability of the URL. Any idea of the cause of this behavious?