Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to copy file. Access to the path is denied

Tags:

asp.net

svn

I am working on asp.net 3.5 project on remote machine. I am accessing it using remote desktop. When I build the project, I get error:

Error   62  Unable to copy file "obj\Debug\myprojname.pdb" to "bin\myprojname.pdb". Access to the path 'bin\myprojname.pdb' is denied. 

Project is under SVN. I deleted the obj\Debug\myprojname.pdb and tried to run again but getting same error. I am trying to remove thereadonly from the folder but after clicking ok, It becomes readonly again ( i guess because of SVN).

like image 292
DotnetSparrow Avatar asked Mar 17 '12 12:03

DotnetSparrow


People also ask

How do I fix access denied in Visual Studio?

Right-click Visual Studio <VersionNumber>, select Change, and then select Repair to initiate the repair process.


1 Answers

I solved this problem by deleting the contentious files from bin folder and rebuilding the project.

like image 193
DiligentKarma Avatar answered Oct 10 '22 17:10

DiligentKarma