title: WPF Application not getting file access rights
body: <p>I have a WPF app that creates some text files in its own install directory.  However, even after the UAC prompt, windows vista and windows 7 users often times still get "file access failed" type errors.  The solution is to find the executable in windows explorer and open up the compatibility tab under the file properties and check "run as administrator".  This is obviously a terrible user experience but I'm not sure how to ensure the app can secure itself these permissions without that step being taken.  I am not trying to bypass the UAC prompts.</p>