Sounds to me like what ever method you are using to get the data out of
the file, you are leaving the file open. Make sure to Close().
This is a discussion on Edit xml data in web applications - CSharp ; In my current web project, I keep part of the data in xml files. Problem is that everytime I run the project, if I need to edit the xml file to correct some data, it won't let me save. I'm ...
In my current web project, I keep part of the data in xml files.
Problem is that everytime I run the project, if I need to edit the xml
file to correct some data, it won't let me save.
I'm currently thinking of two things that may be causing the trouble,
but I'm certain of none of them:
i.- The xml is in a configuration folder inside the Inetpub directory,
and as IIS is running prevents me from editing the file (I think this
is the most probable).
ii.- The xml file remains open after the data is read by the web
application.
Can anybody give me an insight?
Thanks in advance
Vic
Sounds to me like what ever method you are using to get the data out of
the file, you are leaving the file open. Make sure to Close().
In fact, the file was left open. I was receiving an exception I wasn't
expected just before closing the file.
Thank you very much