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

Discussion in 'ASP .Net' started by SP, Jul 25, 2007.

  1. SP

    SP Guest

    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.
    SP
     
    SP, Jul 25, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jim Heavey

    ASPNET_wp locks my machine up

    Jim Heavey, Oct 15, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    530
    Jim Cheshire [MSFT]
    Oct 16, 2003
  2. arkam
    Replies:
    1
    Views:
    681
    Jim Cheshire [MSFT]
    Dec 18, 2003
  3. Robert W. Eckert
    Replies:
    4
    Views:
    998
    =?Utf-8?B?Um9iIEVja2VydA==?=
    Oct 5, 2004
  4. =?Utf-8?B?QmFzIEhlbmRyaWtz?=

    Directory and files names in temporary asp.net directory

    =?Utf-8?B?QmFzIEhlbmRyaWtz?=, Jan 28, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    1,604
    Juan T. Llibre
    Jan 31, 2005
  5. Verane
    Replies:
    5
    Views:
    668
    William F. Robertson, Jr.
    Feb 1, 2005
  6. MB
    Replies:
    7
    Views:
    2,876
    Alvin Bruney [MVP - ASP.NET]
    Jul 12, 2005
  7. =?Utf-8?B?UG9vcm5pbWEgVGhpcnVtb29ydGh5?=

    Could not copy temporary files to the output directory

    =?Utf-8?B?UG9vcm5pbWEgVGhpcnVtb29ydGh5?=, Oct 25, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    515
    Karl Seguin
    Oct 25, 2005
  8. Explorer Man
    Replies:
    17
    Views:
    3,365
Loading...