Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do you ensure windows applications and windows services access the same ProgramData on Win2008 x64?
    primarykey
    data
    text
    <p>I have a windows forms application that reads and updates an XML file with information which a windows service must act on.</p> <p>This has been working on Windows Server 2003, XP and Vista (x32) for some time.</p> <p>Now, when installed on Windows Server 2008 x64, strange things have started happening, thanks I assume to the User "VirtualStore" folder redirecting security arrangement (which as you can tell I don't fully understand yet).</p> <p>The Windows Forms app wants to create, read and update the files in c:\user\username\appdata\local\virtualstore\programdata\appname but the service seems happy reading the data from the file in c:\program files\appname...</p> <p>The result is they are looking at different data.</p> <p>Now, if I set both executables to "run as an administrator" via the properties/compatibility tab, this problem goes away and the file in c:\program files\appname is used as expected.</p> <p>However, this feels less than ideal.</p> <p>As you can probably tell, I am not really aware of most of the issues / factors at work here.</p> <p>This question is possibly too broad to answer well on Stack Overflow but can someone point in the right direction or alert me to what I need to understand so that my applications can work properly in the Win2008 x64 environment, and continue to work as they do now, on XP, Vista x32 etc.</p> <p>My user base is not at all technical so I don't want to force them to be making technical "behind the scenes" changes - if possible, I want the setup program to handle this for them.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload