S
Snedker
Hi folks,
I've written a windows service that watches a specific (xml) file for
changes. If changes occur, the XML-file is being read and part of the
content written to an Access database (mdb).
First time the XML-file is changed everything runs well and data are
written to database. However, the second time I change the content of
the XML-file I get an IO exception: Process cannot access file 'bla
bla' because it being used by another proces.
The error occurs at line 43 (reader.Read() in the file
http://files.getdropbox.com/u/175230/Code/XmlHandler.cs. The void
Execute() is called from line 66 in http://files.getdropbox.com/u/175230/Code/Service1.cs.
Any clues?
Thanks in advance for your time and efforts!
Kind regards
Morten Snedker
I've written a windows service that watches a specific (xml) file for
changes. If changes occur, the XML-file is being read and part of the
content written to an Access database (mdb).
First time the XML-file is changed everything runs well and data are
written to database. However, the second time I change the content of
the XML-file I get an IO exception: Process cannot access file 'bla
bla' because it being used by another proces.
The error occurs at line 43 (reader.Read() in the file
http://files.getdropbox.com/u/175230/Code/XmlHandler.cs. The void
Execute() is called from line 66 in http://files.getdropbox.com/u/175230/Code/Service1.cs.
Any clues?
Thanks in advance for your time and efforts!
Kind regards
Morten Snedker