I have a WCF service deployed on a local server. The source code needs to access to the %LocalAppData% environment variable but when I try to access to that folder on C# using the following line of code:
Environment.SpecialFolder.LocalApplicationData
It refers to the following Path:
C:\Windows\system32\config\systemprofile\AppData\Local\
Any idea why this could be happening? If I login into the local server and I go to %localappdata% it refers to the right path... Maybe there is something on the IIS server I need to change? Any pointers?
Thanks!