Unable to copy file. Access to the path is denied

后端 未结 20 3042
[愿得一人]
[愿得一人] 2020-12-05 23:07

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 c         


        
相关标签:
20条回答
  • 2020-12-05 23:28

    You might be opened two visual studios for two different solutions. Vs-A is in Debug mode and VsB is erroring out about .pdb file access denied. So remove the debug mode from Vs-A and Rebuild Vs-B. It should work now, without errors.

    Good Luck.

    0 讨论(0)
  • 2020-12-05 23:32

    I started Visual studio as administrator and that worked.

    0 讨论(0)
  • 2020-12-05 23:33

    After trying all the options below, the only solution was to restart the Windows 7.

    • Removed read only flag.
    • Restart the visual studio.
    • Remove the corresponding reference(.dll file) from the References and add it back
    • Make sure bin isn't checked in to TFS
    • Deleting the contentious files from bin folder
    0 讨论(0)
  • 2020-12-05 23:33

    I resolved it by cleaning all projects individually and then rebuilding them individually in the order of their dependency over each other

    0 讨论(0)
  • 2020-12-05 23:35

    I solved it by Unchecking the Read-only CheckBox option on folder setting.than reload the solution again :)

    0 讨论(0)
  • 2020-12-05 23:36

    I had the same issue and I only had to restart the visual studio. Classic move :)

    0 讨论(0)
提交回复
热议问题