Unauthorized Access Exception RRS feed

  • Question

  • In my application LocalFolder i create a StorageFile to write log statements. Reading and writing to this file is fine until i restart the system. Once user restarts the tablet , application fails to open the file to read throwing "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))".

    Checking the file attributes , found that some how hidden attribute is set to this file when user restart the tablet.

    As the file is set with hidden attribute , throws this unauthorized exception.


    Any ideas?

    • Edited by Tarak.Kar Friday, January 30, 2015 1:21 PM
    Friday, January 30, 2015 1:19 PM

All replies

  • If you expressly set the permissions, and reboot, it changes back?  This doesn't really sound likea dev issue, but a machine issue.  Does it occur on other machines?

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, January 30, 2015 7:31 PM