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

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?
 
C

Can Erten

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.
 

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

Top