I am trying to get the path to the currently logged in user's application data folder.
I'm using
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
But the path that is returned is:
C:\Documents and Settings\Default User\Application Data
I want the logged in user not the Default User.
The path I was expecting was:
C:\Documents and Settings\jbezanson\Application Data
This is the path all the websites I've read say I should be getting with that code.
jbezanson is the user I am logged in as.
I am logging into the server via a thin client and terminal services. My application is running on the server. Could this be the problem?