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. Advertising

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:
    471
  2. David Veeneman

    Releasing lock on a text file?

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

    Releasing file locks

    David Veeneman, Feb 14, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    579
    David Veeneman
    Feb 14, 2007
  4. David Veeneman

    Releasing file locks on email attachments?

    David Veeneman, Feb 15, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    488
  5. DG

    Web service is not releasing SQL05 locks

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

Share This Page