473,394 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Repost - InetTransferLib ftp problem

Hi again. No responses to the first post 4 days ago, so just trying my
luck again. Anyone have any hints where I might get an answer to this?
It is an Access problem, but if you can point me to another newsgroup
which could help, please do.
-----------

I've been successfully using the InetTransferLib to upload and download
files via ftp for a long time. I only use it intermittently, and
recently this stopped working on one of my computers (P4, WXPHome,
Acc2000). The identical code in the identical database will work on
other similar computers and I can't work out why it is not working.

For ftp downloading, the following line in the code (ConnectToFTPHost
procedure) returns a zero, which subsequently results in a 'Cannot start
file transfer...' error.

hFTP = apiFtpOpenFile(hSession, .lpszUrlPath, lngFileMode,
FTP_TRANSFER_TYPE_BINARY Or INTERNET_FLAG_DONT_CACHE, 0&)

For uploading, the following line in the code (sChangeDir procedure)
returns zero.

lngRet = apiFtpSetCurrentDir(hSession, strExtract)

and the upload procedure finally returns the very helpful code of
-2147219289.

I've modified various settings in Internet Explorer but nothing has made
a difference. I can use the Windows FTP program from the command prompt,
and can access the relevant ftp site via Internet Explorer or WSFTP.

Any help greatly appreciated.

Owen Jenkins
Jan 31 '06 #1
2 2667
I do not use the InetTransferLib having written my own FTP Class. I
have never experienced the problem you describe but

I run ShowLastResponseInfo both for Success and on Error; it often
helps.

I've been told that I should use
Private Declare Function GetLastError Lib "kernel32" () As Long
instead but I have not found it to be so useful.

*****

Private Declare Function InternetGetLastResponseInfo Lib "wininet.dll"
_
Alias "InternetGetLastResponseInfoA" _
(lngError As Long, _
ByVal strBuffer As String, _
lngBufferLength As Long) As Boolean

Public Sub ShowLastResponseInfo()
Dim lngError As Long
Dim strError As String
Dim strBuffer As String
Dim lngBufferLength As Long
strBuffer = String(2047, " ") & vbNullChar
lngBufferLength = 2048
If InternetGetLastResponseInfo(lngError, strBuffer,
lngBufferLength) = 0 Then
MsgBox "Last response information could not be read!",
vbInformation, "FTP"
Else
If lngError <> 0 Then strError = " Error " & lngError
If lngBufferLength <> 0 Then _
MsgBox Left(strBuffer, lngBufferLength), vbInformation,
"FPT" & Nz(strError, "")
End If
End Sub

Jan 31 '06 #2
Lyle Fairfield wrote:
I do not use the InetTransferLib having written my own FTP Class. I
have never experienced the problem you describe but

I run ShowLastResponseInfo both for Success and on Error; it often
helps.

Thanks Lyle,

I tried that and it returned with no error, just giving the information ...

200 Type set to I
227 Entering passive mode (80, 203, 180, 126, 213, 179)

This looks like helpful info, but I don't know what it means.
Feb 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Peter | last post by:
Can someone help me with mvps.org's InetTransferLib demo? I successfully brought in InetTransfer sample .mdb and the modules. I can bring up frmTestCases form and when click on any of the...
2
by: Tony | last post by:
Access collective, I am running WinNT4.0, Acc2000 SR1 and IE 6.0. I converted (from Acc97) and imported Dev Ashish's InetTransferLib add-in modules into my Acc2000 database. Using the sample FTP...
0
by: Owen Jenkins | last post by:
I've been using Dev's fantastic InetTransferLib to upload and download files via ftp. Now I'm using the http procedures to have my application download zip files from my website. Although the...
1
by: Owen Jenkins | last post by:
Reposting this message from last week since I have not had a reply so far. Hopefully someone will have an idea? --- I've been using Dev's fantastic InetTransferLib to upload and download files...
0
by: Owen Jenkins | last post by:
My Access application downloads file from my website using the InetTransferLib http functions. One of my clients working from a hospital network gets an error message 'proxy authentication...
0
by: THDWWSIJQUOK | last post by:
Hi, I have an A97 database, which I have created for FTP purposes using the InetTransferLib.mda file by Dev Ashish and Terry Creft The application has worked great for me as long as I dialed-up...
3
by: Adam | last post by:
I've posted about this previously, but failed to receive a satisfactory response, so have included a code sample: I am trying to receive messages from an HTML viewer control in compact.net (c#),...
14
by: Steve McLellan | last post by:
Hi, Sorry to repost, but this is becoming aggravating, and causing me a lot of wasted time. I've got a reasonably large mixed C++ project, and after a number of builds (but not a constant...
0
by: Owen Jenkins | last post by:
I've been successfully using the InetTransferLib to upload and download files via ftp for a long time. I only use it intermittently, and recently this stopped working on one of my computers (P4,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.