Unable to copy file – access to the path is denied May 7, 2023 by Tarik I solved this problem by deleting the contentious files from bin folder and rebuilding the project.