You are creating a Windows application by using the .NET Framework 3.5.
You plan to deploy the application to the %ProgramFiles%\Contoso directory on computers that run
Windows Vista and Microsoft Windows XP operating systems.
The user settings are stored between user sessions.
Users with non-administrative privileges must be able to execute the application.
You need to store the user settings without causing a security exception or a permission exception.
What should you do?
A.
Store the user settings to the %ProgramFiles%\Contoso directory.
B.
Store the user settings to a location in the %LOCALAPPDATA% directory.
C.
Store the user settings to a location that is supported by Windows Vista virtualization.
D.
Use a ConfigurationSection object to store the user settings. Set the
SectionInformation.AllowExeDefinition property of the related section to MachineToApplication.