Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Releasing file locks

Reply
Thread Tools

Releasing file locks

 
 
David Veeneman
Guest
Posts: n/a
 
      02-14-2007
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:


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web service is not releasing SQL05 locks DG ASP .Net Web Services 5 11-24-2007 07:30 PM
Releasing file locks on email attachments? David Veeneman ASP .Net 2 03-05-2007 11:54 AM
Releasing file locks David Veeneman ASP .Net 1 02-14-2007 10:54 PM
Releasing lock on a text file? David Veeneman ASP .Net 4 02-12-2007 02:54 AM
Releasing ip =?Utf-8?B?ZHdpZ2h0?= Wireless Networking 2 03-23-2005 05:37 PM



Advertisments