System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

Yes, the very program that gives you this message may be the program that is locking the file. Make sure to practice good housekeeping by closing each data stream after it has been used.