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