c# - Winforms showing different values from xml -


i have windows service project contains test.xml file. in properies changed copy always.

i have created setup service , after installing service test.xml present in c:\program files(86)\service folder.

now want edit test.xml file throgh ui. have created small winforms project 'editxml'. editxml accessing test.xml this

document = xdocument.load(system.io.path.combine(appdomain.currentdomain.basedirectory, "test.xml")); 

i have added editxml.exe setup of services. after installing service editxml.exe present in folder.

but when edit using editxml cant see changes in test.xml.

why values different test.xml? correct approach? let me know if question not clear.

i think have issue inssuficient permissions , windows file virtualization. when installer creates file inside program files folder, sets permission read operations.

when try modify file using application running @ user account has write permissions, windows makes illusion file has been written, puts in virtual store - check if such directory/file exists in c:\users\currentusername\local\virtualstore\program files (x86)\yourfoldername

only application can see modified file version, other application see original version written installer.

to able modify file using application, need add write permissions file.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -