FAQ Database Discussion Community


Unauthorised access to folders when creating xml file

c#,xml,wpf,exception,unauthorizedaccessexcepti
I'm working on a WPF application where the user sets the target path for an xml file to be created, but I'm always getting an UnauthorizedAccessException, even if the target directory is in my own computer. I've already tried replacing <requestedExecutionLevel level="asInvoker" uiAccess="false" /> with <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> in...