I created a Basic Windows Service with the help of Windows Service Template, from Microsoft Visual Studio IDE 2010 Ultimate ; I set the Account Type to Local System, and I test this out, and after that, I set it to LocalService and I test it out. On both sides I have the same problem. I'm trying to check my Desktop folder ( C:\users\charqus\desktop ) with the next variable:
private readonly string folderParent = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
I have printed the variable folderParent to the EntryLog application, and this is the result: C:\Windows\system32\config\systemprofile\Desktop
I have accessed that path, and I don't find any Desktop Folder in there. If I'm trying with my service to list all files from Desktop ( from that path ) he doesn't list anything.
Thanks!