C
C#12mo ago
Jur

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
Buddy
Buddy12mo ago
$details
MODiX
MODiX12mo ago
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)
Buddy
Buddy12mo ago
Please include code too!
ZacharyPatten
ZacharyPatten12mo ago
you can check file permissions in windows by right clicking the file and selecting properties and then the security tab in the pop up
No description
ZacharyPatten
ZacharyPatten12mo ago
there are other possible sources of access denied errors than just that, but you should check that first
Jur
JurOP12mo ago
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!
canton7
canton712mo ago
Also, everything in Program Files gets locked down by default
Want results from more Discord servers?
Add your server