title: Where to store local service appdata?
body: <p>I'm writing a windows service that will have a 'LocalService' account type. I have a file that stores what it has to do.</p>
  
  <p>I also have a windows form GUI where that file is also accessed to add/remove instances of the action for the service to perform. (dont know if its relavant but the service downloads tables from a webservice and exports them to any database the user has access to. these downloads are scheduled to happen regularly)</p>
  
  <p>The service will only be installed on a user account.</p>
  
  <p>I was planning on storing the file in user appdata folder however while debugging the service I got the error "Access to path [path] is denied"</p>
  
  <p>Where would you recommend storing this file so it is accessible from both programs?
  Thanks</p>
  
  <p>EDIT: Looking a bit more, I've realised that </p>
  
  <pre><code>Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
  </code></pre>
  
  <p>finds a different path for the service and the windows form app..
  And that that app cant access the service appdata just as the service cant seem to access user appdata. so the same question stands!</p>
  
  <p>ANOTHER EDIT:
  So it turns out </p>
  
  <p>Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)</p>
  
  <p>is accessible from a local service and a user program - doh</p>
  
  <p>...but some places seem to be read only...</p>