Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 4th, 2006, 06:48 AM
Registered User
 
Join Date: Dec 2006
Location: mumbai, mh, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default File Download Problem with AspSmartUpload componen

Hi,

I am getting one error while downloading a file (DBF file) through aps page. the error is: "Can not access file because the file is being used by another process".

First My asp page creates a DBF file programmatically using OLEDB provider and saves that file at a particular location. In the same asp page I have given link to download the file on client machine.
above operation will be performed based on the flag set in my code. if flag is 'Save' it will create the DBF if flag is 'Download' it will download the DBF.
I am using ASPSmartUpload component to download the file. and i am calling DownloadFile method of this component. But it is giving me error as mentioned above. I have closed the recordset and connection object and set it to Nothing. but still it is giving this error. This works fine for the first time and after that it gives this error.

please tell me what could be the reason for this and how i can handle this programmatically. is there a way to find out whether the file is in use or not and if yes then how to stop that process? it seems like aspsmartupload component is not good for File Download purpose..

please suggest something ASAP as this is delaying my work.

Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
File Download Window Problem AgentSmith ASP.NET 1.0 and 1.1 Professional 7 March 8th, 2009 08:31 PM
Stored Procedure versus Data Access Logic Componen AspNetGuy BOOK: Beginning ASP.NET 2.0 and Databases 0 June 26th, 2008 05:25 PM
Smaller download/single download file available jminatel BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 November 21st, 2005 11:10 AM
File download problem sandeep_chalke .NET Web Services 0 June 24th, 2004 12:20 PM
ASPSmartUpload lian_a Classic ASP Basics 13 May 13th, 2004 03:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.