I have used the stream writer before but never seen this error. System.UnauthorizedAccessException: 'Access to the path 'C:\Users\openuser\source\repos\OTC_CALL\OTC_CALL\logs' is denied.
I tried running as admin and got the same error. I checked the use the debug runs under and its the same account thats in the file path. I even tried giving full permission to everyone on that file and still got the error. Any suggestions?

Mageshwaran RRank #411 · 6.1K reputationPosted Oct 13, 2020, 4:09 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Oct 12, 2020, 7:30 PM EDT
scott oliver82 reputationPosted Oct 13, 2020, 9:05 AM EDT