title: IIS7.5 Application Pool, process identity and environment
body: <p>I have web application that have to access local resources, files/folders, to be able to do git clone/pull/push. I've created a separate Application Pool with Process Identity == my own account (Administrator of machine).</p>
  
  <p>But, if I do: </p>
  
  <pre><code>Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
  </code></pre>
  
  <p>The return value:</p>
  
  <pre><code>"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local"
  </code></pre>
  
  <p>so, it looks like system profile is still used. <code>git clone</code> and other git operations hangs up, seems like fail to find .ssh keys etc. </p>
  
  <p>The interesting thing, that it worked fine before Windows SP1 update (at least I blame update, since nothing more changed on machine).</p>