Access denied on trying to read/write on .txt file included in installation
hello guys! im new here. Anyone available to help me with deploying a winforms app? I use visual studio installer project extension to create a setup file, but after installing i get an access denied error when my app tries to read and write to a .txt file that is included in the installation
7 Replies
$details
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, and what you expect the result to be. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
Please include code too!
you can check file permissions in windows by right clicking the file and selecting properties and then the security tab in the pop up
there are other possible sources of access denied errors than just that, but you should check that first
i have fixed it by moving the file to the users documents folder, its just a quick app for some api requests i made for my dad so its not that big of a deal to solve like this
thanks for the help though!
Also, everything in Program Files gets locked down by default