none
Lost FIleIOPermissions in SpecialFolders

    Question

  • I did search for an answer to this but couldn't find anything that related and is probably something simple I am overlooking but I can't find it.

    I have been writing/updating a VB program for the past 8 years or so and saving data to the MyDocuments folder as well as reading/writing to the QuickBooks datafile, XML files, and text files located there. Everything works fine if I compile and run using VS2015 but I recently decided to upgrade to VS2017. The code compiles without error but will not read or write to any folder located in My.Computer.FileSystem.SpecialDirectories. StreamReader/StreamWriter return "no permission" exceptions as well as XMLWriter, OleDB connections, etc. I can have full access to other folders such as D:\Temp but not "MyDocuments" (D:\!Data) or any other of the "SpecialDirectories". 

    Bringing the code back up in VS2015 compiles and works just fine but I can't find a setting in VS2017 that is different and that turns off those privileges.

    Any help or suggestions would be appreciated!


    Rich Lucas


    • Edited by rlucas50 Friday, April 28, 2017 7:16 AM
    Friday, April 28, 2017 2:06 AM

Answers

All replies