We save our Project config file in C:\ProgramData\MyApplication path.
When Power User is using our application while closing the application, System.Configuration.Save() method gives Access is denied Error to the above path.
Admin can add a user as Power User in Windows
By default, members of this group have no more user rights or permissions than a standard user account. The Power Users group in previous versions of Windows was designed to give users specific administrator rights and permissions to perform common system tasks. In this version of Windows, standard user accounts inherently have the ability to perform most common configuration tasks, such as changing time zones. For legacy applications that require the same Power User rights and permissions that were present in previous versions of Windows, administrators can apply a security template that enables the Power Users group to assume the same rights and permissions that were present in previous versions of Windows.
I investigated on the net and found out that you have to give explicit permission to the config file for that Power User. But in our case, We can't give explicit permission to the file for the power user.
So how can we save the config file changes for power user without giving explicit permissions?
Thanks in advance !!!!