S
stuart.jones
Dear all
I have a Windows Service that retrieves some data as XML, applies an
XSLT to produce a CSV which is saved to the filesystem as a text file.
This all works fine. Depending upon the configuration, this file is
then
1. copied to another location
2. attached to an e-mail message
3. FTPed to a particular location
Problem is that the FTPing is failing with the "being used by another
process" error.
I assume that the file has finished being written as steps 1 and 2 are
successful. If I try and delete the file manually through Explorer I'm
unable to do so - until I stop the Windows Service.
Why does the Windows Service appear to keep a handle on the created
file?
Any help is greatly appreciated.
Regards
Stuart
I have a Windows Service that retrieves some data as XML, applies an
XSLT to produce a CSV which is saved to the filesystem as a text file.
This all works fine. Depending upon the configuration, this file is
then
1. copied to another location
2. attached to an e-mail message
3. FTPed to a particular location
Problem is that the FTPing is failing with the "being used by another
process" error.
I assume that the file has finished being written as steps 1 and 2 are
successful. If I try and delete the file manually through Explorer I'm
unable to do so - until I stop the Windows Service.
Why does the Windows Service appear to keep a handle on the created
file?
Any help is greatly appreciated.
Regards
Stuart