Delete File
Tech-Archive recommends: Fix windows errors by optimizing your registry
Hi & TIA! I have a process that uploads an excel file to a folder in my
site. The file is read and added to a table in my sql server database which
uses this imported list to do a search against one of my tables. The
problem I'm having is once the file is uploaded it gets locked by what
appears to be the aspnet_wp. This causes a problem when the user decides to
alter the excel file to change the list being imported and keeps the same
file name. When this happens the existing file cannot be deleted/removed
because it is locked. I've used everything programmatically to release all
references to the file object. Even if I shut the browser down I cannot
manually delete the file for some time until the aspnet_wp lets it go. I
know of some tools that can be used to unlock the file, but I need to do it
via code. Is this possible and if so where can I find info? Thanks for
your time.
--
Reggie
.
Relevant Pages
- Re: Background thread in ASP.net
... The second a file is dropped into that folder, ... I have a web application project where the user uploads an excel file. ... (microsoft.public.dotnet.framework.aspnet) - Re: Exported Excel File is Incomplete
... Browse to a single Folder and Export Data to a new EXCEL File in that Folder ... <MS ACCESS MVP> ... Replace the generic NameOfQuery with the real name of the query. ... (microsoft.public.access.externaldata) - Re: Update source file for all links at once
... To see how to implement relative paths in Word, check out the solution I've posted at: ... I turned off the option to update links upon "Save" and the links are working on the test file as long as I move both the Word and the linked Excel file to the same folder. ... When I click on "Edit>Links" I get a listing of all the links with the old folder showing as the>source file. ... (microsoft.public.word.docmanagement) - Re: Update source file for all links at once
... Excel file to the same folder. ... source file. ... If I use the shift key to highlight them all, ... (microsoft.public.word.docmanagement) - Re: Junk messages comimg via my website form Please help
... the htaccess file can password protect a folder but I can foresee several problems. ... When Pub uploads files, it normally does so to the root directory, which would be fine. ... That folder would probably have to have a subfolder, /index_files, where Pub stores all the images and other pages, unless the user wanted only a text file. ... (microsoft.public.publisher) |
|