Process cannot access the file because it is being used by another process

  • Thread starter Thread starter Jim
  • Start date Start date
J

Jim

Hey all, if anyone can help with this I would appreciate it. I'm
loading an XML file and modifying one of the nodes. Once I modify the
node, I call the .Save method on the XML document object and I keep
getting the message below:

The process cannot access the file "C:\Documents and
Settings\xxxxx\Desktop\Code\Test\Config.xml" because it is being used
by another process.

Any help in how to get around this would be appreciateed. I've even
tried rebooting my PC and I still get this message.
 
I'm able to write to a new xml file, but still getting the same message
when trying to save it to the original XML file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top