January 15, 2010 at 8:50 am
Trying to use "Http connection manager" to automate downloading a file on the internet / http:.
In the http connection manager, every time i hit test connection at the the bottom on any file on any site, I get the errror. "Unable to connect to remote server".
For testing purposes. I put the following URL in the Server URL:
http://www.pgts.com.au/download/txt/alice30.txt
I can get out to the internet just fine with IE and firefox. Anyone ever run into this issue?
Thanks.
January 20, 2010 at 12:52 pm
I just tested with the URL you have provided above and it worked fine from my site.
Do you have firewall in place? IE and Firefox might work because they use automatic proxy by default. In the HTTP connection manager there is no such option and you have to explicitly provide your proxy settings.
April 19, 2010 at 1:54 pm
Were you able to fix your issue?
I ran into a similar issue and if you were able to fix yours, please let me know how you fixed it.
I have created an SSIS package that uses HTTP connection manager and script task to download the file from a website and save it to the local disk. The package works great on windows server 2008 but fails with the following error message on windows server 2008 R2.
[Void DownloadFile(System.String, Boolean)] Error: Exception from HRESULT: 0xC001600D
[Connection manager "HTTP Connection Manager"] Error: Request cannot be processed. Try again later.
Here is sample code in the script task:
Public Sub Main()
Dim httpConnection As Microsoft.SqlServer.Dts.Runtime.HttpClientConnection
Dim c As Object
c = Dts.Connections("x").AcquireConnection(Nothing)
httpConnection = New HttpClientConnection(c)
httpConnection.DownloadFile(Dts.Variables("fileloc").Value.ToString(), True)
Dts.TaskResult = Dts.Results.Success
End Sub
I checked the firewall settings and cannot figure out what is blocking the download. I don't think there is any issue in the package as it runs fine on 2008 but fails on 2008 R2. Please help!
Thanks in advance.
April 19, 2010 at 3:27 pm
I was not able to fix the issue. The workaround I put in place is time based. So at a certain, I have a Move-IT task (Third party tool to move / ftp data) to pick up the file and FTP. Not the most optimal way, but I was tired of dealing with this issue. If you find something, please let me know.
September 2, 2011 at 6:08 pm
I have the same issue,Has anybody found solution for this problem?
Thanks
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply