R
Reggie
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.
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.