I understand that you use

string path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);

to get the desktop path, but it is coming back with the AMachine\ASPNET desktop path instead of the profile path that I am logged in as [Kevin].

All of my desktop items are visible under my login and on my desktop, so the above code is not getting the current logged in user but rather it is seeing AMachine\ASPNET as the current user or just taking the first profile in the list of profiles.

Does anyone know what is going on and how I can correct the situation?

If your code is running from ASP.NET, this is customary as you are not the local user.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.