Using the AXFFileDownload ActiveX control in VB6. When adding file with an invalid Target (URL) an error is generated and properly trapped. The second time through however, the following message is displayed (when a reset is attempted in the code):
Run-time error '-2147352567 (800020009)':
Download is not complete, can't reset
Can't find any information in the documentation regarding this error.
There is a known issue in XFile that when an error is encountered when prosessing a download, the reset method doesn't work properly. Reset does work properly after a successful file transfer. A workaround would be to have your javascript refresh the page. Would that work for you?
Thanks,
Joy
Thanks for the response Joy. I'm not sure what page you're referring to regarding the refresh. In my scenario, I have a VB client app attempting to download a file from a (asp page) URL that's invalid. My only workaraound has been to restart the client app.
Sorry, I missed the part in your original message where you said this was VB6. Restarting the client app is obviously not ideal. Perhaps you can create your own "reset" method that recreates the object by setting the variable to nothing, resestting it to a new instance of XFile, and resetting all the properties?
- Joy