IO Exception : Process cannot access the file
-
Hi.. When i try to save the modifications done to any xml file using XmlDataDocument variable, the error shown is as follows: The process cannot access the file 'xml file name' because it is being used by another process. Could anyone plz solve this!! Thanks..
-
Hi.. When i try to save the modifications done to any xml file using XmlDataDocument variable, the error shown is as follows: The process cannot access the file 'xml file name' because it is being used by another process. Could anyone plz solve this!! Thanks..
zxc89 wrote:
Could anyone plz solve this!!
Sure. Don't try to modify the file when it's in use by another process. :) Are you sure you are not leaving the file open somewhere?
-
zxc89 wrote:
Could anyone plz solve this!!
Sure. Don't try to modify the file when it's in use by another process. :) Are you sure you are not leaving the file open somewhere?
-
The error message indicates a sharing violation. If no other processes are using the file then make sure you haven't opened it twice without appropriate share flags.