I\'m trying to save a file to the disk but I get UnauthorizedAccessException. The error says I have to get the right permissions on the folder, and I\'ve tried every possibl
Turns out what I was trying to do was saving the folder and not the file, I forgot to combine the fileName with the path.
Changed the Save part to the following:
file.SaveAs(Path.Combine(path, fileName));
Which solved the whole thing for me.