?
Solved

FTP error from VB using WinInet API

Posted on 2002-07-03
3
Medium Priority
?
993 Views
Last Modified: 2012-06-27
Hello,

Tech: VB, IIS, WinInet API

I am implemeting FTP Asynchronously using WinInet dll. But sometimes I am receiving a error either sending files or retriving files.

The error number is 12031 (retrieved from Err.LastDLLError) and the Error documentation in the microsoft site says "The connection with the server has been reset".

Can you pls. tell me what does that error means? Is there a way to fix the above error?

Thanks.
0
Comment
Question by:soni1978
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 600 total points
ID: 7127460
Did you see these articles:

INFO: Using WinInet APIs Asynchronously Within Visual Basic (Q189850)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q189850

Also:
Win32 Internet HTTP Functions in Visual Basic
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwebtool/html/msdn_vbhttp.asp

and I quote:
<quote>
The WinInet API also provides FTP and Gopher functions; however, the WinInet SDK documentation indicates that these functions are best suited to asynchronous use, and Visual Basic requires third-party tools to use asynchronous functions and callbacks. Therefore, this article focuses on HTTP functions, which can safely be called synchronously. (For a look at how you would use the FTP functions asynchronously using Visual C++®, please refer to Robert Coleridge's article, Advanced FTP: Teaching Fido to Phetch.
</quote>

Anthony
0
 

Author Comment

by:soni1978
ID: 7127739
I did see the articles.

The problem now is, it runs for most of the times but sometime it gives errors. Any suggestions are welcomed

Thanks.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 7127774
No idea.  I gave up attempting to write it asynchronously and instead came up with a synchronous solution.  In any case, there are far better commercial products that are more robust than anything you or I could devise.  In my case, I had some extra time on my hands and welcomed the challenge.  But I would never recommend it for anything "mission critical".

Good luck,
Anthony
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month8 days, 6 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question