G
Guest
I have a web application that saves/loads XML documents. On occasion, an
error is logged on the call to XmlDocument.Load: "process cannot access the
file <filepath here> because it is being used by another process." Why
should a document read operation have any sort of locking issues - even if
two users are attempting to read the file at the same time, this should not
be a problem. I don't think this is happening at the same time as a call to
XmlDocument.Save on the file either, so I don't believe that is the issue
(though I'm not sure why that would be a problem in any case).
The same error has also been raised when trying to load an XML document by
the application after a new version of the XML file was uploaded via FTP to
the web server. (The XML document is saved in the application Cache and is
automatically reloaded when the file changes using the cache dependency
functionality.)
Any help on this issue would be appreciated - I have searched many different
forums and web sites but have not yet found an answer.
EK
error is logged on the call to XmlDocument.Load: "process cannot access the
file <filepath here> because it is being used by another process." Why
should a document read operation have any sort of locking issues - even if
two users are attempting to read the file at the same time, this should not
be a problem. I don't think this is happening at the same time as a call to
XmlDocument.Save on the file either, so I don't believe that is the issue
(though I'm not sure why that would be a problem in any case).
The same error has also been raised when trying to load an XML document by
the application after a new version of the XML file was uploaded via FTP to
the web server. (The XML document is saved in the application Cache and is
automatically reloaded when the file changes using the cache dependency
functionality.)
Any help on this issue would be appreciated - I have searched many different
forums and web sites but have not yet found an answer.
EK