XML Document Saves as Read Only -> Bug or Feature ?

  • Thread starter Thread starter Can Erten
  • Start date Start date
C

Can Erten

When I deploy my application to pocket pc. There is an xml file that I
read and change it appropriateley. However when I save the file, it
sets the attributes to read only enabled. I close the application,
uncheck the readonly attribute and starts working correctly. Whenever
It calls xmldocument save function the file becomes read only, and next
time it tries to open it gives unauthorizedexception.
How to avoid that? Use xmlwriter instead of xmldocument?
 
Solved. The problem was that I couln't set the read only property to
false. I don't know why but there is checked unchecked and half checked
status. When I tried I left it as halfchecked. When cleared the read
only check. It worked properly.
 
Back
Top