Releasing file locks

Discussion in 'ASP .Net' started by David Veeneman, Feb 14, 2007.

  1. I have a maddening problem that I hope someone can help with. I have some
    code that writes temporary documents to the data folder of my web site. On
    one document, I keep getting an error "The process cannot access the file
    'myFile.txt' because it is being used by another process."

    Simple failure to wrap a stream writer in a try-catch-finally block, right?
    Not so--here's the code in question:
     
    David Veeneman, Feb 14, 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. Dave
    Replies:
    0
    Views:
    575
  2. =?Utf-8?B?U3RldmUgQnVnZGVu?=

    application pool locks file

    =?Utf-8?B?U3RldmUgQnVnZGVu?=, Apr 9, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    642
    =?Utf-8?B?U3RldmUgQnVnZGVu?=
    Apr 10, 2006
  3. David Veeneman

    Releasing lock on a text file?

    David Veeneman, Feb 9, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    490
  4. David Veeneman

    Releasing file locks

    David Veeneman, Feb 14, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    727
    David Veeneman
    Feb 14, 2007
  5. David Veeneman

    Releasing file locks on email attachments?

    David Veeneman, Feb 15, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    578
  6. jim-on-linux
    Replies:
    2
    Views:
    448
    jim-on-linux
    Oct 29, 2006
  7. fabio

    problem with advisory file locks

    fabio, May 8, 2006, in forum: C Programming
    Replies:
    2
    Views:
    314
    Joe Wright
    May 10, 2006
  8. DG

    Web service is not releasing SQL05 locks

    DG, Nov 20, 2007, in forum: ASP .Net Web Services
    Replies:
    5
    Views:
    474
Loading...