Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
0


I have pulled one .net project from github. Opened it in Visual studio 19. There are multiple projects in Solution but only one project is giving the problem while building. Error is as follows :

"Severity Code Description Project File Line Suppression State Error CS2012 Cannot open 'C:\Users\cloverspd1\Source\Repos\cloverspd1\NPD\SyncDataJob\obj\Debug\SyncDataJob.exe' for writing -- 'Access to the path 'C:\Users\cloverspd1\Source\Repos\cloverspd1\NPD\SyncDataJob\obj\Debug\SyncDataJob.exe' is denied.' SyncDataJob C:\Users\cloverspd1\Source\Repos\cloverspd1\NPD\SyncDataJob\CSC 1 Active "

Thing is that ,.exe file does not exists there in debug folder. Since it is not building unable to create .exe file.


What I have tried:

Gave full controll access to project folder.
Posted
Updated 20-May-19 3:18am

1 solution

There may be ntfs permission issues. You can issue these commands as an administrator:
dos
cd C:\Users\cloverspd1\Source
takeown /R /F *
icacls * /T /Q /C /RESET
and see if that fixes the issue.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900