Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Http Connection Manager Expand / Collapse
Author
Message
Posted Friday, January 15, 2010 8:50 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, June 13, 2014 6:57 PM
Points: 148, Visits: 640
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.
Post #848338
Posted Wednesday, January 20, 2010 12:52 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 3:26 PM
Points: 1,117, Visits: 2,221
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.


---
SSIS Tasks Components Scripts Services | http://www.cozyroc.com/

Post #850771
Posted Monday, April 19, 2010 1:54 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, January 20, 2011 10:55 AM
Points: 2, Visits: 23
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.
Post #906323
Posted Monday, April 19, 2010 3:27 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, June 13, 2014 6:57 PM
Points: 148, Visits: 640
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.
Post #906378
Posted Friday, September 2, 2011 6:08 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, August 29, 2014 5:46 PM
Points: 182, Visits: 737
I have the same issue,Has anybody found solution for this problem?

Thanks
Post #1169557
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse