By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,290 Members | 1,666 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,290 IT Pros & Developers. It's quick & easy.

aspnet_wp locks some file types when copy them into a temporary directory

P: n/a
Dear all!

I have written a web service which should archive files in a server
directory. The files are placed in a directory that the web server can
access. In the first step I copy them to a temporary directory on the
web server. Afterwards I put some data into a database table and put
one of the files into a content management system by sending an e-
mail. If all that works fine I have to copy the files from the
temporary folder into the target folder which is also accessible to
the web server. All works fine except the second copy. For some file
types (.bil and .aux) the second copy will result into the error, that
the file is already used by another process. The other process is the
ASP.NET worker process (aspnet_wp in IIS 5, w3wp in IIS 6). Other file
types don't have that problem. The problem doesn't exist, when I
rename the .bil-file into .bil1 for example.

Does anybody know, why this 2 file types are locked by the worker
process and other file types not?

Thanks and best regards.

Jul 25 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.